/* ============================================================
   SIEMPRESOL SWIMWEAR — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --rust:        #B84A2F;
  --rust-dark:   #8B2E12;
  --rust-light:  #D4622A;
  --ocean:       #1B4F72;
  --ocean-mid:   #2471A3;
  --ocean-light: #5DADE2;
  --sun:         #E8A020;
  --sun-light:   #F0C040;
  --sand:        #F2E6D0;
  --sand-dark:   #C8B898;
  --earth:       #7A5230;
  --dark:        #1C0F08;
  --white:       #FDFAF5;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Raleway', sans-serif;
  --transition:   all 0.3s ease;
  --shadow:       0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.22);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: var(--font-body); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(253, 250, 245, 0.96);
  backdrop-filter: blur(10px);
  padding: 1rem 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--white); transition: var(--transition); line-height: 1;
}
.nav-logo span {
  display: block; font-size: 0.5rem; font-family: var(--font-body);
  font-weight: 400; letter-spacing: 0.55em; text-transform: uppercase;
  margin-top: 2px; opacity: 0.8;
}
.nav.scrolled .nav-logo { color: var(--dark); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--white);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--sun);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--dark); }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.nav-cart {
  position: relative; cursor: pointer; display: flex; align-items: center;
  gap: 0.4rem; color: var(--white); transition: var(--transition);
  font-size: 0.7rem; letter-spacing: 0.15em; background: none; border: none;
}
.nav.scrolled .nav-cart { color: var(--dark); }
.cart-count {
  background: var(--rust); color: white; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center;
  justify-content: center; font-size: 0.62rem; font-weight: 700;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 0;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--white); transition: var(--transition); }
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; padding: 0.85rem 2.4rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--rust-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--rust); border: 1.5px solid var(--rust); }
.btn-ghost:hover { background: var(--rust); color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh; min-height: 620px; position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background: linear-gradient(185deg, #061826 0%, #0A2744 18%, #1B4F72 40%, #2E7BA8 58%, #C1440E 78%, #7A2010 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(232,160,32,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 65%, rgba(184,74,47,0.18) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-logo {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 9vw, 8rem); font-weight: 700;
  letter-spacing: 0.08em; line-height: 0.9; margin-bottom: 0.4rem;
}
.hero-logo-sub {
  font-size: clamp(0.6rem, 1.4vw, 0.82rem); letter-spacing: 0.65em;
  text-transform: uppercase; font-weight: 300; margin-bottom: 2rem; opacity: 0.8;
}
.hero-tagline {
  font-family: var(--font-heading); font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem); font-weight: 300;
  margin-bottom: 2.75rem; opacity: 0.9;
  max-width: 460px; margin-left: auto; margin-right: auto;
}
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; line-height: 0; }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-label {
  display: block; font-size: 0.68rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; color: var(--dark); line-height: 1.12;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.container { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   FEATURED / PRODUCT CARDS
   ============================================================ */
.featured { padding: 6rem 2rem; background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card { cursor: pointer; }
.product-img { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1rem; position: relative; }
.product-img-placeholder { width: 100%; height: 100%; transition: transform 0.55s ease; }
.product-card:hover .product-img-placeholder { transform: scale(1.05); }
.product-overlay {
  position: absolute; inset: 0;
  background: rgba(28,15,8,0.38);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.2rem; }
.product-subtitle { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--earth); margin-bottom: 0.45rem; }
.product-price { font-size: 0.88rem; font-weight: 600; color: var(--rust); }

/* Gradient placeholders */
.grad-rust   { background: linear-gradient(155deg, #7A2010 0%, #B84A2F 45%, #E8902A 100%); }
.grad-ocean  { background: linear-gradient(155deg, #061826 0%, #1B4F72 45%, #2E8BC0 100%); }
.grad-sand   { background: linear-gradient(155deg, #5A3818 0%, #8B6040 45%, #C8A870 100%); }
.grad-sun    { background: linear-gradient(155deg, #8B2E12 0%, #B84A2F 40%, #E8A020 100%); }
.grad-deep   { background: linear-gradient(155deg, #0A1F30 0%, #1B4F72 40%, #E8A020 100%); }
.grad-earth  { background: linear-gradient(155deg, #3A1808 0%, #7A4A28 50%, #C8A060 100%); }

/* ============================================================
   STORY STRIP
   ============================================================ */
.story-strip {
  background: var(--ocean); color: var(--white);
  padding: 5.5rem 2rem; text-align: center;
}
.story-strip .section-title { color: var(--white); margin-bottom: 1.5rem; }
.story-strip p {
  max-width: 620px; margin: 0 auto 2.5rem;
  font-size: 1rem; line-height: 1.9; opacity: 0.85; font-weight: 300;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background: var(--dark); padding: 5rem 2rem; text-align: center; color: var(--white); }
.newsletter h2 { font-family: var(--font-heading); font-size: 2.4rem; margin-bottom: 0.5rem; }
.newsletter p { font-size: 0.88rem; opacity: 0.65; margin-bottom: 2rem; font-weight: 300; letter-spacing: 0.05em; }
.newsletter-form { display: flex; max-width: 400px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.18); border-right: none;
  background: rgba(255,255,255,0.07); color: var(--white);
  font-size: 0.85rem; outline: none; transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.38); }
.newsletter-form input:focus { border-color: var(--sun); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--white); padding: 4.5rem 2.5rem 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; max-width: 1000px; margin: 0 auto 3rem;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.18em; }
.footer-logo-sub { font-size: 0.52rem; letter-spacing: 0.55em; text-transform: uppercase; opacity: 0.45; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.85; opacity: 0.55; max-width: 260px; font-weight: 300; }
.footer-col h4 { font-size: 0.67rem; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 1.25rem; opacity: 0.45; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { font-size: 0.85rem; opacity: 0.65; transition: opacity 0.3s; font-weight: 300; }
.footer-col ul li a:hover { opacity: 1; color: var(--sun); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09); padding-top: 2rem;
  text-align: center; font-size: 0.72rem; opacity: 0.38;
  max-width: 1000px; margin: 0 auto; font-weight: 300; letter-spacing: 0.06em;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(28,15,8,0.55);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: -440px; width: 420px; max-width: 100vw;
  height: 100vh; background: var(--white); z-index: 1200;
  display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -10px 0 50px rgba(0,0,0,0.18);
}
.cart-drawer.open { right: 0; }
.cart-header {
  padding: 1.5rem 1.75rem; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--sand);
}
.cart-header h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }
.cart-close {
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--dark); transition: var(--transition);
}
.cart-close:hover { color: var(--rust); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem 1.75rem; }
.cart-empty {
  text-align: center; padding: 3rem 0; color: var(--sand-dark);
  font-family: var(--font-heading); font-size: 1.1rem; font-style: italic;
  line-height: 1.8;
}
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sand); align-items: start;
}
.cart-item-img { width: 80px; height: 105px; flex-shrink: 0; }
.cart-item-info h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.2rem; }
.cart-item-info p { font-size: 0.68rem; color: var(--earth); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--sand-dark);
  background: none; cursor: pointer; font-size: 1rem; display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.qty-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.cart-item-qty span { font-size: 0.85rem; font-weight: 500; min-width: 16px; text-align: center; }
.cart-item-price { font-weight: 600; font-size: 0.9rem; white-space: nowrap; color: var(--dark); }
.cart-remove {
  display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sand-dark); cursor: pointer; margin-top: 0.5rem;
  background: none; border: none; padding: 0; transition: var(--transition);
}
.cart-remove:hover { color: var(--rust); }

.cart-footer { padding: 1.5rem 1.75rem; border-top: 1px solid var(--sand-dark); background: var(--sand); }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem;
}
.cart-note { text-align: center; margin-top: 0.75rem; font-size: 0.68rem; color: var(--earth); letter-spacing: 0.05em; }

/* ============================================================
   SIZE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,15,8,0.55);
  z-index: 1300; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.size-modal {
  position: fixed; bottom: -100%; left: 0; right: 0;
  background: var(--white); z-index: 1400; padding: 2rem 1.75rem 2.5rem;
  border-radius: 18px 18px 0 0;
  transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1);
  max-height: 80vh;
}
.size-modal.open { bottom: 0; }
.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem;
}
.modal-header h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.modal-header p { font-size: 0.9rem; color: var(--rust); font-weight: 600; margin-top: 0.2rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--dark); transition: var(--transition); }
.modal-close:hover { color: var(--rust); }
.modal-label { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--earth); margin-bottom: 0.9rem; }
.sizes-grid { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.size-btn {
  width: 52px; height: 52px; border: 1.5px solid var(--sand-dark);
  background: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  cursor: pointer; transition: var(--transition);
}
.size-btn:hover, .size-btn.selected { background: var(--dark); border-color: var(--dark); color: var(--white); }
.size-guide-link {
  display: block; text-align: center; margin-top: 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--earth);
  opacity: 0.7; transition: opacity 0.3s;
}
.size-guide-link:hover { opacity: 1; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-hero {
  padding: 9rem 2rem 3.5rem; background: var(--sand); text-align: center;
}
.shop-filters {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem; padding: 0 2rem;
}
.filter-btn {
  padding: 0.5rem 1.6rem; font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; background: transparent;
  border: 1.5px solid var(--sand-dark); color: var(--dark); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.shop-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem 6rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: 10rem 2rem 6rem;
  background: linear-gradient(145deg, #061826 0%, #0A2744 40%, #1B4F72 100%);
  text-align: center; color: var(--white);
}
.about-hero .section-title { color: var(--white); margin-bottom: 1rem; }
.about-hero p { font-size: 1rem; opacity: 0.75; font-weight: 300; line-height: 1.8; max-width: 520px; margin: 0 auto; }

.about-content { max-width: 780px; margin: 0 auto; padding: 5rem 2rem; }
.about-content h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; margin-bottom: 1.25rem; }
.about-content p { font-size: 1rem; line-height: 1.95; color: var(--earth); margin-bottom: 2rem; font-weight: 300; }

.values-section { background: var(--sand); padding: 5rem 2rem; }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem; max-width: 900px; margin: 0 auto;
}
.value-item { text-align: center; padding: 2rem 1rem; }
.value-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.value-item h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.5rem; }
.value-item p { font-size: 0.85rem; line-height: 1.75; color: var(--earth); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 10rem 2rem 6rem; min-height: 100vh; background: var(--sand); }
.contact-container { max-width: 580px; margin: 0 auto; }
.contact-container h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 0.5rem; }
.contact-container .lead { color: var(--earth); margin-bottom: 3rem; font-size: 1rem; line-height: 1.8; font-weight: 300; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.67rem; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 0.5rem; color: var(--earth); font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.9rem 1rem; border: 1.5px solid var(--sand-dark);
  background: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  color: var(--dark); outline: none; transition: border-color 0.3s; appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--rust); }
.form-group textarea { height: 145px; resize: vertical; }
.form-success {
  display: none; padding: 1.25rem 1.5rem; background: #e8f5e9;
  border-left: 3px solid #4caf50; margin-bottom: 1.5rem;
  font-size: 0.88rem; color: #2e7d32;
}
.form-success.show { display: block; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.9s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.55s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 0; background: var(--dark);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; color: var(--white) !important; }
  .nav-toggle { display: flex; z-index: 1001; }
  .hero-logo { font-size: 3rem; }
  .cart-drawer { width: 100vw; right: -100vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,0.18); border-bottom: none; }
  .about-content { padding: 3.5rem 1.5rem; }
}
