/* styles.css — InstaBrow Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* =============================================
   RESET & CUSTOM PROPERTIES
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ivory:       #FAFAF7;
  --ivory-mid:   #F3EDE5;
  --ivory-dark:  #E6DDD3;
  --black:       #111111;
  --black-soft:  #1E1E1E;
  --gold:        #C9A96E;
  --gold-light:  #EBD9B4;
  --gray:        #7A7770;
  --gray-light:  #DDD9D1;
  --white:       #FFFFFF;
  --red:         #C12638;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', -apple-system, sans-serif;

  --max-w:      1200px;
  --radius:     3px;
  --radius-lg:  8px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--ff-body); }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.container        { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; }
.text-center      { text-align: center; }

.section { padding: 96px 0; }

/* =============================================
   TYPOGRAPHY
   ============================================= */

.section-label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--black);
  margin-bottom: 48px;
}

.section-title em { font-style: italic; font-weight: 400; }

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */

.announcement-bar {
  background: var(--black);
  color: var(--ivory);
  text-align: center;
  padding: 11px 24px;
  font-size: 13px;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.announcement-bar strong { color: var(--gold); }

.countdown {
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* =============================================
   HEADER
   ============================================= */

.header {
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-dark);
  position: sticky;
  top: 38px;
  z-index: 999;
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn-black {
  background: var(--black);
  color: var(--ivory);
  border: 1.5px solid var(--black);
}

.btn-black:hover {
  background: var(--black-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.btn-black:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-large {
  padding: 20px 40px;
  font-size: 14px;
  width: 100%;
  max-width: 440px;
  letter-spacing: 0.1em;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: calc(100vh - 104px);
  max-height: 920px;
  overflow: hidden;
}

.hero-image-col {
  overflow: hidden;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.hero-content-col {
  padding: 64px 52px 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ivory);
}

.sale-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
  width: fit-content;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.78; }
}

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-headline em { font-style: italic; font-weight: 400; }

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
  max-width: 380px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--ff-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}

.price-current.large { font-size: 50px; }

.price-original {
  font-size: 18px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 300;
}

.price-save {
  font-size: 11px;
  font-weight: 500;
  background: var(--gold-light);
  color: var(--black-soft);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-guarantee {
  font-size: 12px;
  color: var(--gray);
  margin-top: 16px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

/* =============================================
   TRUST BAR
   ============================================= */

.trust-bar {
  background: var(--black);
  padding: 18px 24px;
}

.trust-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ivory);
}

.trust-icon {
  color: var(--gold);
  font-size: 9px;
  flex-shrink: 0;
}

.trust-text {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* =============================================
   GALLERY
   ============================================= */

.gallery { background: var(--ivory-mid); padding: 60px 24px; }

.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery-img:hover {
  transform: scale(1.025);
  box-shadow: 0 14px 44px rgba(0,0,0,0.12);
}

/* =============================================
   FEATURES
   ============================================= */

.features { background: var(--ivory); }

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature-card {
  border-top: 1px solid var(--ivory-dark);
  padding-top: 32px;
}

.feature-num {
  font-family: var(--ff-display);
  font-size: 52px;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
}

/* =============================================
   BEFORE & AFTER
   ============================================= */

.before-after { background: var(--ivory-mid); }

.before-after-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.before-after-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 620px;
}

.before-after-img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  display: block;
}

.before-after-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px 36px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.before-after-quote {
  font-family: var(--ff-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  max-width: 540px;
  line-height: 1.45;
}

/* =============================================
   REVIEWS
   ============================================= */

.reviews { background: var(--ivory); }

.reviews-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -28px;
  margin-bottom: 48px;
}

.reviews-stars  { color: var(--gold); font-size: 18px; letter-spacing: 3px; }
.reviews-count  { font-size: 14px; color: var(--gray); font-weight: 300; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0,0,0,0.09);
}

.review-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.review-body    { padding: 18px 20px 22px; }
.review-stars   { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }

.review-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.review-title {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.review-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   FAQ
   ============================================= */

.faq { background: var(--ivory-mid); }

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-list { border-top: 1px solid var(--ivory-dark); }

.faq-item { border-bottom: 1px solid var(--ivory-dark); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition: color 0.2s;
  gap: 20px;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
  line-height: 1;
  display: inline-block;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}

.faq-item.open .faq-answer { max-height: 320px; }

.faq-answer p {
  padding: 0 0 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  max-width: 640px;
}

/* =============================================
   FINAL CTA
   ============================================= */

.final-cta { background: var(--black); padding: 96px 24px; }

.final-cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }

.final-cta .section-label         { color: var(--gold); }
.final-cta .section-title         { color: var(--ivory); }
.final-cta .section-title em      { color: var(--ivory); }

.final-cta-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.final-cta-price .price-current  { color: var(--ivory); }
.final-cta-price .price-original { color: #555; }

.final-cta-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
}

.final-cta-sub strong { color: var(--gold); font-variant-numeric: tabular-nums; }

.final-cta .btn-large {
  background: var(--ivory);
  color: var(--black);
  border: 1.5px solid var(--ivory);
  margin: 0 auto;
  display: block;
}

.final-cta .btn-large:hover {
  background: var(--white);
  box-shadow: 0 10px 40px rgba(255,255,255,0.12);
}

.final-cta-guarantee {
  font-size: 12px;
  color: #555;
  margin-top: 18px;
  letter-spacing: 0.02em;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 24px;
  text-align: center;
}

.footer-logo {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 12px;
  letter-spacing: 0.07em;
}

.footer-text {
  font-size: 12px;
  color: #555;
  line-height: 2;
}

.footer-link { color: #555; transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */

@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .reviews-grid   { grid-template-columns: repeat(2, 1fr); }
  .trust-grid     { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }

  .hero-image-col {
    height: 70vw;
    min-height: 260px;
    max-height: 440px;
  }

  .hero-img { object-position: center 20%; }

  .hero-content-col { padding: 36px 20px; }
  .hero-headline    { font-size: 34px; }

  .gallery-grid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .features-grid   { grid-template-columns: 1fr; gap: 28px; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .trust-grid      { grid-template-columns: repeat(2, 1fr); }

  .section         { padding: 64px 0; }
  .section-title   { font-size: 30px; }

  .nav-cta         { display: none; }

  .before-after-overlay { padding: 28px 24px 20px; }
  .before-after-quote   { font-size: 17px; }

  .final-cta-price { gap: 8px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */

@media (max-width: 480px) {
  .trust-grid  { grid-template-columns: 1fr; gap: 8px; }
  .trust-item  { justify-content: flex-start; }

  .announcement-bar { font-size: 12px; padding: 10px 16px; }

  .hero-content-col { padding: 28px 16px; }
}
