/* ============================================
   Aldworth & Partners — Architecture Firm
   Design: Soft Luxury, Teal Accents, Rounded Cards
   ============================================ */

:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-tint: #F2F8F6;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9A9A96;
  --accent: #7FBFB5;
  --accent-light: #D4ECE7;
  --accent-dark: #5A9E92;
  --accent-hover: #6BADA1;
  --divider: #E8E8E6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(127, 191, 181, 0.18);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 64px);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.3s var(--ease);
}
.navbar.scrolled {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--divider);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.3s;
}
.navbar:not(.scrolled) .nav-logo { color: #fff; }
.amp {
  font-style: italic;
  font-weight: 300;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--text); }
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.7); }
.navbar:not(.scrolled) .nav-links a:hover { color: #fff; }
.navbar:not(.scrolled) .nav-links a::after { background: #fff; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
}

/* Blueprint Placeholder */
.hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a2a3a 0%, #0d1b2a 40%, #1a2a3a 100%);
  overflow: hidden;
}
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100,160,220,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,160,220,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blueprint-lines .h-line,
.blueprint-lines .v-line {
  position: absolute;
  background: rgba(100,160,220,0.15);
}
.h-line {
  left: 10%;
  right: 10%;
  height: 1px;
  animation: drawLine 3s var(--ease) infinite alternate;
}
.v-line {
  top: 10%;
  bottom: 10%;
  width: 1px;
  animation: drawLineV 3s var(--ease) infinite alternate;
}
@keyframes drawLine {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.7); opacity: 0.5; }
}
@keyframes drawLineV {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.7); opacity: 0.5; }
}
.building-silhouette {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 350px;
  border: 1px solid rgba(100,160,220,0.2);
  border-bottom: none;
  animation: buildUp 4s var(--ease-out) infinite alternate;
}
.building-silhouette::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -60px;
  width: 80px;
  height: 200px;
  border: 1px solid rgba(100,160,220,0.12);
  border-bottom: none;
}
.building-silhouette::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -50px;
  width: 60px;
  height: 150px;
  border: 1px solid rgba(100,160,220,0.12);
  border-bottom: none;
}
@keyframes buildUp {
  0% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.8;
  max-width: 400px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 16px 40px;
  transition: background 0.4s, border-color 0.4s;
}
.hero-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* Hero Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s var(--ease-out) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Sections — Below Hero
   ============================================ */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
}
.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.section-label {
  position: sticky;
  top: 120px;
}
.label-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-card);
  background: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.label-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--text);
  position: relative;
  padding-bottom: 24px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 20px;
}

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   About — Clean with accent border
   ============================================ */
.section--about {
  position: relative;
  overflow: hidden;
}
.section--about::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.3;
  pointer-events: none;
}
.section--about .section-content {
  position: relative;
}

/* ============================================
   Stats
   ============================================ */
.section--stats {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg-tint);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--accent-dark);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ============================================
   Projects
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.project-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  transition: none;
}
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-dark);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: none;
}
.project-info {
  padding: 24px 28px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.project-info p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ============================================
   Services — Card Grid
   ============================================ */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.service-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: none;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.35s;
}
.service-item:first-child { border-top: none; }
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  padding-left: 36px;
}
.service-item:hover::before {
  opacity: 1;
}
.service-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-card);
  background: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.service-body {
  flex: 1;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}
.service-body p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}
.service-arrow {
  align-self: flex-end;
  margin-top: 20px;
  color: var(--accent);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.service-item:hover .service-arrow {
  transform: translate(4px, -4px);
  color: var(--accent-dark);
}

/* ============================================
   Quote
   ============================================ */
.section--quote {
  background: var(--accent-light);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.section--quote::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(127, 191, 181, 0.2);
  pointer-events: none;
}
.section--quote::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(127, 191, 181, 0.15);
  pointer-events: none;
}
.quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--text);
}
.quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* ============================================
   Contact
   ============================================ */
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.contact-col {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.contact-col h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-col h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.contact-col p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 12px;
}
.contact-col a {
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-col a:hover { border-color: var(--accent-dark); }
.cta-button {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 18px 48px;
  border-radius: var(--radius-pill);
  transition: background 0.4s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(127, 191, 181, 0.3);
}
.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(127, 191, 181, 0.4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-tint);
  border-top: none;
  padding: 64px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-brand .nav-logo {
  font-size: 1.15rem;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color 0.3s;
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.footer-links a:hover { color: var(--accent-dark); }
.footer-links a:hover::after { width: 100%; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--accent-dark); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-label {
    position: static;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .label-num { margin-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 1.1rem;
    color: var(--text) !important;
  }
  .nav-toggle { display: flex; z-index: 101; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 28px 12px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .service-item { padding: 28px; min-height: auto; }
  .project-info { padding: 20px; }
  .contact-col { padding: 28px; }
  .cta-button { padding: 16px 36px; font-size: 0.8rem; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
