/* ============================================================
   Liddell + Associates — Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #111111;
  --dark:     #1f1f1f;
  --mid:      #555555;
  --light:    #999999;
  --border:   #e0e0e0;
  --bg:       #ffffff;
  --bg-alt:   #f6f6f5;
  --accent:   #701225;
  --max-w:    1200px;
}

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

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 130px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  height: 65px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease, transform 0.3s ease;
}

#nav.scrolled .nav-logo {
  left: clamp(1.25rem, 5vw, 3rem);
  transform: translate(0, -50%);
}

.nav-logo img {
  height: 125px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: height 0.3s ease;
}

#nav.scrolled .nav-logo img {
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}

.hero-img.loaded { transform: scale(1); }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.7rem, 1.5vw, 0.875rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2.25rem;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  padding: 6rem 0;
  background: var(--bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  color: var(--black);
}

.intro-text p {
  color: var(--mid);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.link-arrow:hover { color: var(--black); }

.intro-quote {
  padding: 2rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
}

.intro-quote p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: normal;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

.intro-quote cite {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--black);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.4rem 0;
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.filter-btn:hover { color: var(--dark); }

.filter-btn.active {
  color: var(--accent);
  font-weight: 400;
}

.filter-btn.active::after {
  transform: scaleX(1);
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-item {
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.portfolio-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.18) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .cat {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.35rem;
}

.portfolio-overlay h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}

.portfolio-overlay h3 small {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-left: 0.3em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal box — fixed width so nothing moves between images */
.lb-box {
  position: relative;
  background: #141414;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  width: min(900px, 90vw);
  overflow: hidden;
}

/* Stage — arrows + fixed-height image area */
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  padding: 28px 68px;
  flex-shrink: 0;
}

/* Fixed-height image container — never changes size between images */
.lb-img-wrap {
  flex: 1;
  min-width: 0;
  height: 60vh;
}

/* Image fills container; object-fit: contain letterboxes as needed */
.lb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Close button */
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.lb-close:hover { background: #5a0f1e; }

/* Nav arrow circles */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  z-index: 1;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

.lb-prev:hover,
.lb-next:hover { background: #5a0f1e; }

/* Info panel */
.lb-info {
  padding: 14px 68px 22px;
  text-align: center;
  flex-shrink: 0;
}

.lb-cat {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.lb-title {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}

.lb-counter {
  display: block;
  font-size: 0.75rem;
  color: #aaaaaa;
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 6rem 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  line-height: 1.65;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.service-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-list li {
  font-size: 0.9375rem;
  color: var(--mid);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.team {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team-member {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-top: 2px solid var(--accent);
}

.team-member h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.6rem;
  color: var(--black);
}

.team-member .credentials {
  font-size: 0.8125rem;
  color: #333;
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--bg-alt);
  color: var(--dark);
}

.contact .section-title { color: var(--black); }

.contact-grid {
  max-width: 640px;
}

.contact-grid > p {
  font-size: 0.9375rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-list a {
  font-size: 1.0625rem;
  color: var(--black);
  transition: color 0.2s;
}

.contact-list a:hover { color: var(--accent); }

.contact-list address {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.75rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .team-member { flex: 1 1 200px; }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    gap: 1.25rem;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .lb-box      { width: 95vw; }
  .lb-stage    { padding: 16px 48px; }
  .lb-img-wrap { height: 50vh; }
  .lb-info     { padding: 10px 48px 16px; }
  .lb-prev     { left: 4px; width: 36px; height: 36px; }
  .lb-next     { right: 4px; width: 36px; height: 36px; }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar { gap: 0.5rem 1.25rem; }

  .footer-inner { justify-content: center; text-align: center; }
}
