/* =========================
   SALMOFARS COSPLAY ATELIER
   VINTAGE RETRO STYLE CSS
   ========================= */

/* ====== FONT IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); /* For retro accent headings */

:root {
  --primary: #242357;
  --secondary: #F7A918;
  --accent: #FBF9F2;
  --retro-red: #D94F4B;
  --retro-green: #6C9A8B;
  --retro-blue: #3B6BA5;
  --retro-brown: #A67C52;
  --retro-cream: #F5E9D3;
  --retro-shadow: 0 4px 24px 0 rgba(36,35,87,0.10), 0 2px 8px 0 rgba(167,124,82,0.10);
  --border-radius: 18px;
  --border-radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.4,1.5,.5,1);
  --font-display: 'Montserrat', 'Arial Black', 'Pacifico', cursive;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-retro: 'Pacifico', 'Brush Script MT', cursive;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-cream);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--retro-cream);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 0.7em;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 var(--retro-cream), 2px 4px 0 rgba(36,35,87,0.07);
}
h1 {
  font-size: 2.3rem;
  font-family: var(--font-retro), var(--font-display);
  color: var(--secondary);
  text-shadow: 2px 3px 0 var(--primary), 0 2px 8px rgba(36,35,87,0.10);
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.7rem;
  color: var(--retro-red);
  font-family: var(--font-retro), var(--font-display);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-blue);
  font-family: var(--font-display);
  margin-bottom: 0.3em;
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--primary);
}
p, ul, ol, dl, table, blockquote {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
a {
  color: var(--retro-blue);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: none;
}

/* ====== RETRO PATTERNS & BACKGROUNDS ====== */
body {
  background: repeating-linear-gradient(135deg, var(--retro-cream), var(--retro-cream) 40px, #f8e7c7 40px, #f8e7c7 80px);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--retro-shadow);
  position: relative;
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: var(--primary);
  color: var(--accent);
  padding: 0;
  box-shadow: 0 2px 12px 0 rgba(36,35,87,0.08);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
}
header img {
  height: 54px;
  width: auto;
  margin-right: 18px;
  filter: drop-shadow(0 2px 0 var(--secondary));
}
nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cta-button {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 0 var(--retro-brown), 0 2px 8px 0 rgba(36,35,87,0.10);
  cursor: pointer;
  text-decoration: none;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: var(--retro-red);
  color: var(--accent);
  box-shadow: 0 6px 0 var(--retro-brown), 0 4px 16px 0 rgba(36,35,87,0.13);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  padding: 8px 16px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  z-index: 30;
}
.mobile-menu-toggle:active {
  background: var(--retro-red);
  color: var(--accent);
  transform: scale(1.08);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-cream) 80%, var(--secondary) 100%);
  box-shadow: 0 8px 32px 0 rgba(36,35,87,0.18);
  z-index: 100;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.7,1.5,.5,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
  transform: scale(1.08) rotate(8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px dashed var(--retro-brown);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--accent);
}

/* ====== HERO SECTION ====== */
.hero {
  background: repeating-linear-gradient(135deg, var(--secondary) 0 40px, var(--accent) 40px 80px);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 8px 32px 0 rgba(36,35,87,0.10);
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
  position: relative;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--secondary);
  text-shadow: 2px 3px 0 var(--primary), 0 2px 8px rgba(36,35,87,0.10);
}
.hero p {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.5em;
}

/* ====== FLEXBOX LAYOUTS ====== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--retro-cream);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px 0 rgba(36,35,87,0.07);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  border: 2px dashed var(--retro-brown);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(36,35,87,0.13);
  border-color: var(--secondary);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--retro-shadow);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(36,35,87,0.13);
  transform: translateY(-4px) scale(1.03) rotate(1deg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.text-image-section > img {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px 0 rgba(36,35,87,0.10);
  max-width: 320px;
  width: 100%;
  height: auto;
}
.text-image-section > div {
  flex: 1 1 220px;
  min-width: 220px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px 0 rgba(36,35,87,0.07);
  margin-bottom: 20px;
  border-left: 8px solid var(--retro-green);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(36,35,87,0.13);
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.01) rotate(-1deg);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.testimonial-card strong {
  color: var(--retro-red);
  font-family: var(--font-display);
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== GALLERY & IMAGES ====== */
.gallery-preview, .gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.gallery-preview img, .gallery-grid img {
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px 0 rgba(36,35,87,0.07);
  width: 180px;
  height: 180px;
  object-fit: cover;
  background: var(--retro-cream);
  border: 2px solid var(--retro-brown);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.gallery-preview img:hover, .gallery-grid img:hover {
  box-shadow: 0 6px 24px 0 rgba(36,35,87,0.13);
  border-color: var(--secondary);
  transform: scale(1.04) rotate(-2deg);
}

.atelier-fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.atelier-fotos img {
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px 0 rgba(36,35,87,0.07);
  width: 220px;
  height: 160px;
  object-fit: cover;
  background: var(--retro-cream);
  border: 2px solid var(--retro-brown);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.atelier-fotos img:hover {
  box-shadow: 0 6px 24px 0 rgba(36,35,87,0.13);
  border-color: var(--secondary);
  transform: scale(1.04) rotate(2deg);
}

.map-placeholder img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px 0 rgba(36,35,87,0.07);
  border: 2px solid var(--retro-brown);
}

/* ====== TABLES ====== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--accent);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px 0 rgba(36,35,87,0.07);
  margin-bottom: 24px;
  overflow: hidden;
}
thead {
  background: var(--secondary);
  color: var(--primary);
}
th, td {
  padding: 14px 12px;
  text-align: left;
  font-size: 1rem;
}
th {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
}
tbody tr {
  border-bottom: 1px solid var(--retro-brown);
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--retro-cream);
}

/* ====== LISTS ====== */
ul, ol {
  padding-left: 1.3em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  font-size: 1rem;
}
ul li::marker {
  color: var(--secondary);
}

/* ====== FOOTER ====== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 40px 0 24px 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -2px 12px 0 rgba(36,35,87,0.08);
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-red);
}
.footer-contact {
  text-align: center;
  font-size: 0.98rem;
  color: var(--accent);
  opacity: 0.92;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-brown);
  color: var(--accent);
  padding: 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 200;
  box-shadow: 0 -2px 16px 0 rgba(36,35,87,0.13);
  font-size: 1rem;
  animation: cookie-slide-in 0.7s cubic-bezier(.7,1.5,.5,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept:hover {
  background: var(--retro-green);
  color: var(--accent);
  transform: scale(1.04);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--accent);
}
.cookie-banner .reject:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.04);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner .settings:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.04);
}

/* ====== COOKIE MODAL ====== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,35,87,0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.4s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 rgba(36,35,87,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-slide-in 0.5s cubic-bezier(.7,1.5,.5,1);
}
@keyframes modal-slide-in {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--retro-red);
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: var(--retro-brown);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  margin-right: 8px;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: left var(--transition), background var(--transition);
}
.cookie-modal .cookie-toggle input:checked + .slider {
  left: 18px;
  background: var(--secondary);
}
.cookie-modal .cookie-category.essential label {
  color: var(--retro-green);
  font-weight: 700;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: var(--retro-green);
  pointer-events: none;
  opacity: 0.7;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-modal .modal-actions .save {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .modal-actions .save:hover {
  background: var(--retro-green);
  color: var(--accent);
  transform: scale(1.04);
}
.cookie-modal .modal-actions .cancel {
  background: var(--retro-red);
  color: var(--accent);
}
.cookie-modal .modal-actions .cancel:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.04);
}

/* ====== MISCELLANEOUS ====== */
blockquote {
  border-left: 6px solid var(--retro-green);
  background: var(--accent);
  padding: 18px 24px;
  border-radius: var(--border-radius-sm);
  color: var(--primary);
  font-style: italic;
  margin-bottom: 24px;
}

ol {
  counter-reset: retro-ol;
}
ol li {
  counter-increment: retro-ol;
  position: relative;
  padding-left: 2.2em;
}
ol li::before {
  content: counter(retro-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1em;
}

dl dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--retro-blue);
  margin-bottom: 0.2em;
}
dl dd {
  margin-bottom: 1em;
  margin-left: 1.2em;
  color: var(--primary);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .card {
    min-width: 180px;
    max-width: 100%;
  }
  .gallery-preview img, .gallery-grid img {
    width: 120px;
    height: 120px;
  }
  .atelier-fotos img {
    width: 140px;
    height: 100px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 8px;
  }
  nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    font-size: 1rem;
    padding: 10px 18px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .feature-grid, .card-container, .content-grid, .atelier-fotos, .gallery-preview, .gallery-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .text-image-section > img {
    max-width: 100%;
    width: 100%;
    margin-bottom: 10px;
  }
  .footer-nav {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    padding: 18px 8px;
  }
  .cookie-modal {
    min-width: 0;
    padding: 18px 8px 18px 8px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero {
    padding: 32px 0 18px 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .section {
    padding: 16px 2px;
  }
}

/* ====== PRINT STYLES ====== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, .container { box-shadow: none !important; background: #fff !important; }
}

/* ====== UTILITY CLASSES ====== */
.hide { display: none !important; }

/* ====== END OF CSS ====== */
