/* ============================================================
   HAYWARD CONSTRUCTION & HOME SERVICES
   Brand: Trajan Pro headings, Oswald body/UI
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #0a0f1e;
  --slate:      #1a2035;
  --mid:        #162540;
  --mid-light:  #1e3052;
  --light-bg:   #e8eaf2;
  --muted:      #e2e8f4;
  --blue:       #1a52cc;
  --blue-bright:#2d6ae0;
  --sky:        #3b82f6;
  --amber:      #f59e0b;
  --emerald:    #10b981;
  --icy:        #f0f4ff;
  --white:      #ffffff;

  --font-heading: 'Trajan Pro', 'Trajan', 'Times New Roman', Georgia, serif;
  --font-ui:      'Oswald', sans-serif;

  --max-w: 1200px;
  --radius: 4px;
  --transition: 0.25s ease;
}

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

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sky);
  border-left: 2px solid var(--blue);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  font-weight: 300;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-desc { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 30px rgba(9, 1, 205, 0.4);
}
.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 40px rgba(30, 64, 255, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  transition: padding var(--transition);
}

.site-header.scrolled {
  padding: 0.8rem 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}
.logo-end {
  font-size: 1em;
  vertical-align: baseline;
}
.logo-mid {
  font-size: 0.6em;
  letter-spacing: 0.12em;
  vertical-align: 0.15em;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--white);
}
.logo-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  letter-spacing: 0.08em !important;
  box-shadow: 0 0 20px rgba(26, 82, 204, 0.35);
  transition: all var(--transition) !important;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-bright) !important;
  box-shadow: 0 0 30px rgba(45, 106, 224, 0.5) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  padding: 1.5rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
  background: var(--mid);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Blue radial glow behind headline */
.hero-glow {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center, rgba(9, 1, 205, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Diagonal accent line */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(9, 1, 205, 0.07) 100%);
  pointer-events: none;
}

.hero-content {
  /* left column — text */
}

/* ---- Hero Collage ---- */
.hero-collage {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 520px;
  position: relative;
}

.collage-top {
  flex: 1.1;
  border-radius: 8px;
  overflow: hidden;
}

.collage-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.collage-top:hover img { transform: scale(1.03); }

.collage-bottom {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.collage-bottom-left,
.collage-bottom-right {
  border-radius: 8px;
  overflow: hidden;
}

.collage-bottom-left img,
.collage-bottom-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.collage-bottom-left:hover img,
.collage-bottom-right:hover img { transform: scale(1.04); }

/* Subtle blue outline on the collage group */
.hero-collage::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--sky);
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.hero-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
}
.hero-headline .line:nth-child(1) { animation-delay: 0.3s; }
.hero-headline .line:nth-child(2) { animation-delay: 0.5s; }

.accent-line {
  color: transparent;
  -webkit-text-stroke: 1px var(--blue-bright);
  position: relative;
}
/* Fill accent line with gradient on load */
.accent-line::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fillAccent 0.6s ease 1.1s forwards;
}

@keyframes fillAccent {
  to { opacity: 1; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: revealUp 0.8s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: revealUp 0.8s ease 0.9s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  animation: revealUp 0.8s ease 1.1s forwards;
}

.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal, .reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible, .reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 7rem 0;
  background: #ffffff;
  position: relative;
}

/* Subtle top edge accent */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

/* On white background, override section header text colors */
.services .section-tag {
  color: var(--blue);
  border-left-color: var(--blue);
}
.services .section-title {
  color: var(--navy);
}
.services .section-desc {
  color: #4a5568;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--mid);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  position: relative;
  transition: background var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(10, 15, 30, 0.12);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  background: var(--mid-light);
  box-shadow: 0 6px 24px rgba(9, 1, 205, 0.2);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--sky);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.card-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 500;
  transition: color var(--transition), letter-spacing var(--transition);
  margin-top: auto;
}
.card-link:hover {
  color: var(--blue-bright);
  letter-spacing: 0.18em;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding: 7rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Faint diagonal stripe */
.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(9, 1, 205, 0.05) 100%);
  pointer-events: none;
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.why-text .section-title { margin-bottom: 1.25rem; }
.why-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.check {
  color: var(--emerald);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.why-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.why-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
  /* Subtle blue tint overlay via box-shadow inset */
  box-shadow: 0 20px 60px rgba(9, 1, 205, 0.3), 0 4px 20px rgba(0,0,0,0.4);
}

/* Blue corner accent on photo */
.why-photo-wrap::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  z-index: 0;
  pointer-events: none;
}

.why-photo {
  position: relative;
  z-index: 1;
}

/* Stats badge overlapping photo bottom-right */
.why-photo-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  z-index: 2;
  background: var(--blue);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(9, 1, 205, 0.5);
}
.badge-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ============================================================
   OUR WORK GALLERY
   ============================================================ */
.our-work {
  padding: 7rem 0;
  background: #ffffff;
  position: relative;
}

.our-work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.our-work .section-tag {
  color: var(--blue);
  border-left-color: var(--blue);
}
.our-work .section-title { color: var(--navy); }
.our-work .section-desc { color: #4a5568; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 0.75rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--mid);
  cursor: pointer;
}

.work-item--wide {
  grid-column: span 2;
}

.work-item--tall {
  grid-row: span 2;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

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

.work-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.9) 0%, transparent 100%);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.work-item:hover .work-label {
  transform: translateY(0);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 7rem 0;
  background: var(--navy);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.testimonials .section-title { color: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--slate);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}

.review-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
}

.review-stars {
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.review-card blockquote {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}

.review-card blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--blue);
  line-height: 0;
  vertical-align: -0.8rem;
  margin-right: 0.2rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-ui);
}

.author-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

.author-source {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE AREA
   ============================================================ */
.service-area {
  padding: 7rem 0;
  background: var(--light-bg);
  position: relative;
}

.service-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

/* On light background, override section header text */
.service-area .section-tag {
  color: var(--blue);
  border-left-color: var(--blue);
}
.service-area .section-title {
  color: var(--navy);
}
.service-area .section-desc {
  color: #4a5568;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.area-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(9, 1, 205, 0.15);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #334155;
  transition: all var(--transition);
  box-shadow: 0 1px 4px rgba(10, 15, 30, 0.07);
}
.area-card:hover {
  border-color: var(--blue);
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(9, 1, 205, 0.12);
  transform: translateY(-2px);
}

.area-marker {
  width: 6px;
  height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(30, 64, 255, 0.6);
}

.area-note {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
}
.area-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.area-note a:hover { color: var(--blue-bright); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--navy);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 1rem; }
.contact-info > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-ui);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact-item svg { color: var(--sky); flex-shrink: 0; }
.contact-item a:hover { color: var(--white); }

/* ---- Form ---- */
.contact-form-wrap {
  background: var(--slate);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
}

/* Top-left corner accent */
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius) 0 0 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(26, 82, 204, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 400;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 2px rgba(30, 64, 255, 0.15);
}

/* Custom select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b82f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option {
  background: #ffffff;
  color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: -0.25rem;
}

.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  color: var(--emerald);
  font-size: 0.9rem;
}
.form-success.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #060b18;
  padding: 5rem 0 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.footer-brand .logo-main {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  color: var(--white);
  display: block;
  margin-bottom: 0.2rem;
}
.footer-brand .logo-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  display: block;
  margin-bottom: 1.25rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sky); }

.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(160, 170, 192, 0.5);
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-inner { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item--wide { grid-column: span 2; }
  .work-item--tall { grid-row: span 1; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-collage { height: 320px; flex-direction: row; }
  .collage-top { flex: 1.5; }
  .collage-bottom { flex: 1; grid-template-columns: 1fr; }
  .collage-bottom-right { display: none; }
  .hero-headline { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work-item--wide { grid-column: span 1; }
  .work-label { transform: translateY(0); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .area-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
