/* =====================================================================
   Lincoln Headquarters — Hair Salon, Port Lincoln SA
   styles.css — shared stylesheet for all pages
   Palette: charcoal + warm gold | Type: Playfair Display + Inter
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --charcoal: #1a1a1a;
  --charcoal-soft: #242424;
  --charcoal-line: #333;
  --gold: #c9a24b;
  --gold-bright: #e0bd6a;
  --cream: #f6f3ee;
  --text: #ececec;
  --text-muted: #b3b3b3;
  --white: #ffffff;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 84px;
  --nav-h-shrink: 62px;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--white); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--charcoal-soft); }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-intro { color: var(--text-muted); max-width: 620px; margin-bottom: 52px; font-size: 1.05rem; }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 50px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 75, 0.3); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* =====================================================================
   Header / Navigation (sticky, shrinks on scroll)
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  height: var(--nav-h-shrink);
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); }
.brand .mark { font-size: 1.5rem; color: var(--gold); line-height: 1; }
.brand .name { font-size: 1.15rem; color: var(--white); letter-spacing: 0.04em; }
.brand .name small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); }
.site-header.scrolled .brand .mark { font-size: 1.3rem; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { color: var(--charcoal); }
.nav-links .btn::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.82)),
    url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
}
.hero-inner { max-width: 760px; padding-top: var(--nav-h); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Page banner (sub pages) */
.page-banner {
  min-height: 46vh;
  display: flex; align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(18, 18, 18, 0.74), rgba(18, 18, 18, 0.84)),
    url("https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.page-banner .container { padding-top: var(--nav-h); }
.page-banner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-banner p { color: var(--text-muted); margin-top: 10px; }

/* =====================================================================
   Feature / info cards
   ===================================================================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--charcoal-soft);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: var(--transition);
}
.section-alt .card { background: var(--charcoal); }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.card .icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 16px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }

.stats { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); }
.stat .lbl { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* =====================================================================
   Services
   ===================================================================== */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; }
.service-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--charcoal-line);
}
.service-row .s-name { font-family: var(--font-head); font-size: 1.18rem; color: var(--white); white-space: nowrap; }
.service-row .s-dots { flex: 1; border-bottom: 1px dotted #555; transform: translateY(-4px); }
.service-row .s-meta { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.service-row .s-desc { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.service-item { display: flex; flex-direction: column; }

/* =====================================================================
   Gallery + Lightbox
   ===================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1 / 1; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item::after {
  content: "View";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white);
  background: rgba(26, 26, 26, 0); opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { background: rgba(26, 26, 26, 0.55); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.92); padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: none; color: var(--white);
  font-size: 2.4rem; cursor: pointer; transition: color var(--transition); user-select: none;
}
.lightbox .lb-close { top: 24px; right: 32px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { color: var(--gold); }

/* =====================================================================
   Hours + Contact
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; }

.info-block { margin-bottom: 28px; }
.info-block h4 { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; font-family: var(--font-body); }
.info-block p, .info-block a { color: var(--text); font-size: 1.05rem; }
.info-block a:hover { color: var(--gold); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 12px 0; border-bottom: 1px solid var(--charcoal-line); font-size: 0.98rem; }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }
.hours-table tr.today td { color: var(--gold); font-weight: 600; }
.hours-table tr.today td:last-child { color: var(--gold-bright); }
.hours-table .closed { color: #8a6a6a; }

/* ---------- Form ---------- */
.form { display: grid; gap: 22px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--charcoal-line);
  border-radius: 8px;
  padding: 18px 16px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.section-alt .field input, .section-alt .field textarea, .section-alt .field select { background: var(--charcoal-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute; left: 16px; top: 17px;
  color: var(--text-muted); font-size: 1rem; pointer-events: none;
  transition: var(--transition); background: transparent; padding: 0 4px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field input:focus + label,
.field input.filled + label,
.field textarea:focus + label,
.field textarea.filled + label,
.field select:focus + label,
.field select.filled + label {
  top: -10px; font-size: 0.74rem; color: var(--gold);
  background: var(--charcoal-soft); letter-spacing: 0.05em;
}
.section-alt .field input:focus + label,
.section-alt .field input.filled + label,
.section-alt .field textarea:focus + label,
.section-alt .field textarea.filled + label { background: var(--charcoal); }
.field select { appearance: none; }
.field .error-msg { color: #e07a7a; font-size: 0.78rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c0504d; }
.field.invalid .error-msg { display: block; }

.form-status {
  display: none; padding: 16px 20px; border-radius: 8px;
  background: rgba(201, 162, 75, 0.12); border: 1px solid var(--gold);
  color: var(--gold-bright); font-size: 0.95rem;
}
.form-status.show { display: block; animation: fadeUp 0.4s ease; }

/* =====================================================================
   CTA strip
   ===================================================================== */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #2a2418, var(--charcoal));
  border-top: 1px solid var(--charcoal-line);
  border-bottom: 1px solid var(--charcoal-line);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta p { color: var(--text-muted); margin-bottom: 28px; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: #131313; padding: 60px 0 28px; border-top: 1px solid var(--charcoal-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: 0.06em; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--charcoal-line); color: var(--text-muted);
  transition: var(--transition);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-bottom {
  text-align: center; padding-top: 24px; border-top: 1px solid var(--charcoal-line);
  color: #777; font-size: 0.85rem;
}
.footer-bottom a { color: #999; }

/* =====================================================================
   Reveal on scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 940px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: 1fr; gap: 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { background-attachment: scroll; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(18, 18, 18, 0.98);
    padding: 10px 0 20px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--charcoal-line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin: 12px auto; }
  .section { padding: 70px 0; }
  .grid-3, .grid-2, .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-3, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats { gap: 26px; }
}
