/* ==========================================================================
   InfinityAccents — Design System
   Palette: white base, deep teal primary, bright teal accent, teal-tinted ink
   Type: Fraunces (display) + Inter (body/UI)
   Signature: angled "brushstroke" section dividers
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --white: #ffffff;
  --teal-deep: #0d7377;     /* primary */
  --teal-bright: #14b8a6;   /* accent / hover */
  --ink: #0a2e36;           /* near-black teal, used for text */
  --mist: #f4fbfa;          /* faint teal-tinted section background */
  --hairline: #e8f4f3;      /* dividers, borders */
  --ink-soft: #4a6b6f;      /* secondary text */

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 10px;
  --shadow-soft: 0 4px 24px rgba(13, 115, 119, 0.08);
  --shadow-lift: 0 12px 40px rgba(13, 115, 119, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -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.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------- Nav ---------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 500;
  font-size: 0.96rem;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--teal-bright);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-deep); }

.nav-cta {
  background: var(--teal-deep);
  color: var(--white);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--ink); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-3);
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--teal-bright);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: var(--space-4);
}

.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--teal-deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-deep); }

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3.2;
  min-height: 360px;
  background: linear-gradient(160deg, var(--teal-deep), var(--ink) 120%);
  box-shadow: var(--shadow-lift);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.85;
}
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,115,119,0.55), rgba(10,46,54,0.35));
}

/* ------------------------- Brushstroke divider (signature) ---------------- */

.brush-divider {
  position: relative;
  height: 90px;
  margin-top: -1px;
}
.brush-divider svg { width: 100%; height: 100%; display: block; }

/* ------------------------------- Sections --------------------------------- */

.section { padding: var(--space-6) 0; }
.section-tinted { background: var(--mist); }

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: var(--space-2);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--mist);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: var(--space-2);
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Showcase grid + albums */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.album-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 220px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.album-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.album-card:hover img { transform: scale(1.06); }
.album-card .album-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-2) var(--space-2) var(--space-2);
  background: linear-gradient(to top, rgba(10,46,54,0.85), transparent);
  color: var(--white);
}
.album-card .album-label h3 { color: var(--white); font-size: 1.05rem; }
.album-card .album-label span { font-size: 0.8rem; opacity: 0.85; }

@media (max-width: 900px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .album-grid { grid-template-columns: 1fr; } }

/* Before/after slider — Showcase signature interaction */
.ba-slider {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  user-select: none;
  max-width: 880px;
  margin: 0 auto;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before-wrap {
  position: absolute; inset: 0;
  z-index: 2;
  overflow: hidden;
  width: 50%;
}
.ba-slider .ba-before-wrap img { width: 100%; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-handle::after {
  content: '⇔';
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--teal-deep);
  box-shadow: var(--shadow-soft);
}
.ba-tag {
  position: absolute; z-index: 4;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(10,46,54,0.65);
  color: var(--white);
  top: var(--space-2);
}
.ba-tag.before-tag { left: var(--space-2); }
.ba-tag.after-tag { right: var(--space-2); }

/* Reach Us cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.contact-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-2);
  background: var(--mist);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--hairline);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.contact-position { color: var(--teal-deep); font-size: 0.88rem; font-weight: 600; margin-bottom: var(--space-2); }
.contact-links { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; }
.contact-links a { color: var(--ink-soft); transition: color 0.2s ease; }
.contact-links a:hover { color: var(--teal-deep); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.site-footer .brand { color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* Page header (for Services / Showcase / Reach Us interior pages) */
.page-header {
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}
.page-header h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: var(--space-2); }
.page-header p { max-width: 600px; margin: 0 auto; }

/* Lightbox for album photo viewing */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(10,46,54,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; }
.lightbox-content img { max-height: 85vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: rgba(255,255,255,0.1);
  border: none; color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-caption { color: var(--white); text-align: center; margin-top: var(--space-2); opacity: 0.85; }
