/* ============================================================
   PORT WENTWORTH WEB DESIGN
   Personality: Lowcountry craft studio — deep pine ink, warm
   cream, burnt coral. Fraunces editorial serif + Sora body.
   Square corners, hairline borders, deliberate hover states.
   ============================================================ */

:root {
  --ink: #14251E;
  --ink-deep: #0D1A15;
  --cream: #F6F1E6;
  --cream-soft: #EFE7D4;
  --coral: #E4572E;
  --coral-dark: #C2431C;
  --sage: #5C6B60;
  --hairline: rgba(20, 37, 30, 0.16);
  --hairline-light: rgba(246, 241, 230, 0.22);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Sora', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.section { padding: clamp(72px, 9vw, 120px) 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

h1 em, h2 em { font-style: italic; color: var(--coral); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border: 2px solid var(--coral);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn-solid { background: var(--coral); color: #fff; }
.btn-solid:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.solid {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  transition: color 0.3s ease;
}
.site-header.solid .brand { color: var(--ink); }
.brand-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name em { font-style: italic; color: var(--coral); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.site-header.solid .main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--coral); }
.main-nav .nav-cta {
  border: 2px solid var(--coral);
  background: var(--coral);
  color: #fff !important;
  padding: 10px 20px;
}
.main-nav .nav-cta:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--coral);
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 60;
  position: relative;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 26, 21, 0.62) 0%, rgba(13, 26, 21, 0.48) 55%, rgba(13, 26, 21, 0.7) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 60px;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  max-width: 14ch;
  margin-bottom: 26px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--hairline-light);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track span {
  color: var(--cream);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  white-space: nowrap;
  position: relative;
  padding-left: 28px;
}
.ticker-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background: var(--coral);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Section headings ---------- */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}
.section-note {
  max-width: 56ch;
  color: var(--sage);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Services: editorial rows ---------- */
.services { background: var(--cream); }
.service-rows { margin-top: 48px; border-top: 1px solid var(--hairline); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  align-items: baseline;
  gap: 28px;
  padding: 34px 18px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.service-row:hover { background: var(--cream-soft); padding-left: 30px; }
.service-index {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--coral);
}
.service-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
}
.service-desc { color: var(--sage); font-size: 0.98rem; }

/* ---------- Work ---------- */
.work { background: var(--ink); color: var(--cream); padding-bottom: 0; }
.work .section-head { text-align: center; }
.work .section-note { color: rgba(246, 241, 230, 0.7); }
.work .section-head h2 { color: var(--cream); }
.work .vo-gallery { margin-top: 56px; }

/* ---------- Process ---------- */
.process { background: var(--cream); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--hairline);
}
.process-step {
  padding: 38px 28px;
  border-right: 1px solid var(--hairline);
  transition: background 0.3s ease;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--cream-soft); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--coral);
  margin-bottom: 22px;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.process-step p { font-size: 0.92rem; color: var(--sage); }
.process-step:nth-child(2) { margin-top: 28px; }
.process-step:nth-child(4) { margin-top: 28px; }
.process-grid { align-items: start; }

/* ---------- About ---------- */
.about { background: var(--ink-deep); color: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 26px; }
.about-copy p { color: rgba(246, 241, 230, 0.78); margin-bottom: 18px; max-width: 60ch; }
.about-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  color: var(--cream) !important;
  border-left: 3px solid var(--coral);
  padding-left: 22px;
  margin-top: 30px !important;
}
.about-facts { display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
.fact {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline-light);
}
.fact:first-child { border-top: 1px solid var(--hairline-light); }
.fact-value {
  font-family: var(--font-head);
  font-size: 2.3rem;
  color: var(--coral);
  min-width: 110px;
}
.fact-label { font-size: 0.95rem; color: rgba(246, 241, 230, 0.8); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 20px; }
.contact-copy > p { color: var(--sage); max-width: 46ch; margin-bottom: 26px; }
.contact-points { list-style: none; }
.contact-points li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--coral);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 36px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-field .optional { color: var(--sage); font-weight: 400; text-transform: none; letter-spacing: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid rgba(20, 37, 30, 0.3);
  background: var(--cream);
  border-radius: 0;
  transition: border-color 0.25s ease;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.btn-submit { grid-column: 1 / -1; justify-self: start; }
#formStatus { grid-column: 1 / -1; }
#formStatus p { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--cream);
  padding: 72px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-light);
}
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand p { color: rgba(246, 241, 230, 0.65); font-size: 0.92rem; max-width: 40ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: rgba(246, 241, 230, 0.75);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--coral); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 30px;
}
.footer-base p { font-size: 0.85rem; color: rgba(246, 241, 230, 0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid var(--hairline); }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(2), .process-step:nth-child(4) { margin-top: 0; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-desc { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--ink-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 110px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 55;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1rem; color: var(--cream) !important; padding: 12px 0; width: 100%; }
  .main-nav .nav-cta { margin-top: 20px; text-align: left; }
  .site-header.solid .main-nav a { color: var(--cream) !important; }
  .hero { min-height: 560px; }
  .hero h1 { max-width: 100%; }
  .service-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 6px; }
  .service-row:hover { padding-left: 6px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; }
  .contact-form { padding: 26px 20px; grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
