/* ===========================================================
   Portland Custom Tailor — Design System
   Palette: dark navy, warm beige/cream, gold accent
   Type: Cormorant Garamond (display) + Outfit (body)
   =========================================================== */

:root {
  /* Color */
  --navy:        #14202e;
  --navy-deep:   #0d1722;
  --navy-soft:   #1f3142;
  --cream:       #f6f1e7;
  --cream-deep:  #efe7d6;
  --beige:       #e3d6bf;
  --gold:        #b08d3f;
  --gold-light:  #c9a85c;
  --ink:         #1c1c1a;
  --muted:       #6c6a63;
  --line:        rgba(20,32,46,0.12);
  --line-light:  rgba(246,241,231,0.16);
  --white:       #ffffff;

  /* Type scale */
  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1.05rem;
  --text-lg:   1.3rem;
  --text-xl:   1.7rem;
  --text-2xl:  clamp(2rem, 4vw, 3rem);
  --text-3xl:  clamp(2.6rem, 6vw, 4.6rem);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 2px 14px rgba(13,23,34,0.07);
  --shadow-md: 0 14px 40px rgba(13,23,34,0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 var(--space-2);
  display: inline-block;
}

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--line-light); }
.btn--outline:hover { background: rgba(246,241,231,0.08); border-color: var(--gold-light); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20,32,46,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: transform 0.35s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
}
.brand__logo { width: 38px; height: 38px; color: var(--gold); flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__name span { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: 1.5rem; }
.nav a {
  color: var(--cream);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav a:hover, .nav a.active { opacity: 1; color: var(--gold-light); }
/* Book link inside nav: hidden on desktop (header button covers it), shown as accent in mobile menu */
.nav-book, .nav-call { display: none; }
.header__cta { display: flex; align-items: center; gap: 0.75rem; }
.header__cta .btn { padding: 0.6rem 1rem; font-size: var(--text-sm); }
.header__cta .btn svg { width: 17px; height: 17px; }

.menu-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,23,34,0.92) 0%, rgba(13,23,34,0.74) 45%, rgba(13,23,34,0.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(3rem,8vw,6rem) 0; max-width: 720px; }
.hero h1 {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-3);
  font-weight: 600;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero__sub { font-size: var(--text-lg); line-height: 1.55; color: rgba(246,241,231,0.86); margin: 0 0 var(--space-4); max-width: 600px; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__rating {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(246,241,231,0.9);
}
.stars { color: var(--gold-light); letter-spacing: 2px; font-size: 1.05rem; }

/* ---------- Trust bar ---------- */
.trust {
  background: var(--navy-deep);
  color: var(--cream);
  border-top: 1px solid var(--line-light);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.trust__item { padding: clamp(1.5rem,3vw,2.4rem) 1rem; border-left: 1px solid var(--line-light); }
.trust__item:first-child { border-left: none; }
.trust__num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold-light); line-height: 1; margin-bottom: 6px; }
.trust__label { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,241,231,0.7); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: clamp(2rem,4vw,3.5rem); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: var(--text-2xl); margin: 0 0 var(--space-2); }
.sec-head p { color: var(--muted); font-size: var(--text-lg); font-weight: 300; line-height: 1.55; }

/* ---------- Service grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc-card {
  background: var(--cream);
  padding: 1.8rem 1.6rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-card:hover { background: var(--white); }
.svc-card__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1rem; }
.svc-card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; margin: 0 0 0.4rem; }
.svc-card p { font-size: var(--text-sm); color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Feature blocks (alt rows) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.feature ul { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.feature li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; font-size: var(--text-base); }
.feature li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; }

/* ---------- Reviews ---------- */
.reviews { background: var(--navy); color: var(--cream); }
.reviews .sec-head h2 { color: var(--cream); }
.reviews .sec-head p { color: rgba(246,241,231,0.7); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.review-card {
  background: var(--navy-soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.review-card .stars { font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.review-card blockquote { font-family: var(--font-display); font-size: var(--text-xl); font-style: italic; line-height: 1.4; margin: 0 0 1.3rem; color: var(--cream); }
.review-card cite { font-style: normal; font-size: var(--text-sm); font-weight: 600; color: var(--gold-light); }
.review-card cite span { display: block; font-weight: 400; color: rgba(246,241,231,0.6); font-size: var(--text-xs); margin-top: 2px; }

/* ---------- About strip ---------- */
.about-strip { background: var(--cream-deep); }

/* ---------- Contact / location ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.contact-info h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.contact-list a, .contact-list span { font-size: var(--text-lg); color: var(--ink); }
.contact-list a:hover { color: var(--gold); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.cta-band p { color: rgba(246,241,231,0.75); font-size: var(--text-lg); font-weight: 300; max-width: 540px; margin: 0 auto var(--space-4); }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: var(--cream); padding: clamp(3rem,7vw,5.5rem) 0 clamp(2.5rem,5vw,4rem); text-align: center; }
.page-hero h1 { font-size: var(--text-3xl); margin: 0 0 var(--space-2); }
.page-hero p { color: rgba(246,241,231,0.8); font-size: var(--text-lg); font-weight: 300; max-width: 640px; margin: 0 auto; }

/* ---------- Service detail list ---------- */
.svc-list { display: grid; gap: 1.2rem; }
.svc-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; align-items: flex-start; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-row__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--cream-deep); border-radius: var(--radius); color: var(--gold); flex-shrink: 0; }
.svc-row__icon svg { width: 24px; height: 24px; }
.svc-row h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; margin: 0 0 0.35rem; }
.svc-row p { font-size: var(--text-sm); color: var(--muted); margin: 0; }

/* ---------- Pricing note ---------- */
.pricing-note {
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0 0;
  font-size: var(--text-base);
  color: var(--ink);
}
.pricing-note strong { color: var(--navy); }

/* ---------- Booking ---------- */
.booking { background: var(--cream-deep); }
.btn--block { display: inline-flex; width: 100%; justify-content: center; margin-top: 1.4rem; }
.booking-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start; }
.booking-types { background: var(--navy-deep); color: var(--cream); border-radius: var(--radius); padding: 2rem 2rem 2.2rem; box-shadow: var(--shadow-md); }
.booking-types h3 { font-family: var(--font-display); color: var(--cream); font-size: var(--text-xl); margin: 0 0 1.2rem; }
.booking-list { list-style: none; padding: 0; margin: 0; }
.booking-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-light); }
.booking-list li:last-child { border-bottom: none; }
.booking-list span { font-size: var(--text-base); color: var(--cream); }
.booking-list em { font-style: normal; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; font-weight: 600; }
.booking-note { font-size: var(--text-sm); color: rgba(246,241,231,0.7); margin: 1.1rem 0 0; line-height: 1.55; }
.booking-note a { color: var(--gold-light); text-decoration: underline; }
.booking-note a:hover { color: var(--gold); }
.booking-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); min-height: 620px; }
.booking-embed iframe { width: 100%; height: 100%; min-height: 620px; border: 0; display: block; }
.booking-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 620px; padding: 2.5rem; background: var(--cream); }
.booking-placeholder > svg { width: 48px; height: 48px; color: var(--gold); margin-bottom: 1rem; }
.booking-placeholder .btn svg { width: 18px; height: 18px; margin-bottom: 0; color: currentColor; }
.booking-placeholder h3 { font-family: var(--font-display); font-size: var(--text-xl); color: var(--navy); margin: 0 0 0.6rem; }
.booking-placeholder p { max-width: 34ch; color: var(--muted); margin: 0 0 1.4rem; line-height: 1.6; }
.booking-placeholder strong { color: var(--navy); }
.booking-placeholder .btn { width: auto; align-self: center; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } .booking-embed, .booking-placeholder { min-height: 440px; } }

/* ---------- Quote form ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,63,0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input[type=file] { padding: 0.6rem; background: var(--cream); cursor: pointer; }
.field .hint { font-size: var(--text-xs); color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.quote .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: var(--text-xs); color: var(--muted); text-align: center; margin: 0.9rem 0 0; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--cream); padding: clamp(3rem,5vw,4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand p { color: rgba(246,241,231,0.65); font-size: var(--text-sm); max-width: 320px; margin-top: 1rem; }
.footer h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer li a, .footer__contact span { color: rgba(246,241,231,0.78); font-size: var(--text-sm); }
.footer li a:hover { color: var(--gold-light); }
.footer__bottom { border-top: 1px solid var(--line-light); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--text-xs); color: rgba(246,241,231,0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item { border-top: 1px solid var(--line-light); }
  .trust__item:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 1024px) {
  /* Collapse to hamburger earlier so the 7-item nav + CTAs never crowd.
     Header keeps the primary Book button; Call + all pages live in the menu. */
  .nav, .header__cta .btn--ghost, .header__cta .btn--call-header { display: none; }
  .menu-toggle { display: block; }
  .header__cta .btn--book { padding: 0.55rem 0.85rem; }
  .header__cta .btn--book span, .header__cta .btn--book { font-size: 0.82rem; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--navy-deep); padding: 1.5rem 2rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--line-light);
  }
  .nav.open a { font-size: var(--text-lg); }
  /* Show Book + a Call link prominently inside the open mobile menu */
  .nav.open .nav-book {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--gold); color: var(--navy-deep); font-weight: 600;
    padding: 0.75rem 1rem; border-radius: 8px; opacity: 1; margin-top: 0.4rem;
  }
  .nav.open .nav-book:hover { background: var(--gold-light); color: var(--navy-deep); }
  .nav.open .nav-call {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-light); color: var(--cream); font-weight: 600;
    padding: 0.7rem 1rem; border-radius: 8px; opacity: 1;
  }
  .nav.open .nav-call:hover { border-color: var(--gold-light); color: var(--gold-light); }
  .hero { min-height: 78vh; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: none !important; border-top: 1px solid var(--line-light); }
  .trust__item:first-child { border-top: none; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
