/* 3A Facade website styles. Brand: navy #0E3153, accent #3E6E9C, steel #8E95A0. */
:root {
  --navy: #0E3153;
  --accent: #3E6E9C;
  --steel: #8E95A0;
  --grey: #F2F4F7;
  --line: #D5D9DF;
  --text: #1B2A3A;
  --white: #FFFFFF;
  --max: 1200px;
  --head: "Archivo", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.grey { background: var(--grey); }
.label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 14px; display: block; }
.lead { font-size: 20px; max-width: 820px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .25s, color .25s, border-color .25s; border: 2px solid transparent; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #eef0f3; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 15px; }
.nav a.active, .nav a:hover { color: var(--accent); }
.nav .btn { color: var(--white); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; }

/* Full-screen navy menu (tablet and phone) */
.mobile-menu { position: fixed; inset: 0; background: var(--navy); z-index: 100; display: none; flex-direction: column; padding: 28px 32px; }
.mobile-menu.open { display: flex; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-menu .top img { height: 36px; }
.mobile-menu .close { background: none; border: 0; color: var(--white); font-size: 34px; cursor: pointer; line-height: 1; }
.mobile-menu a { color: var(--white); font-family: var(--head); font-size: 34px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; font-size: 16px; font-family: var(--body); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy) url("../images/hero-curtain-wall.svg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,49,83,.88) 0%, rgba(14,49,83,.55) 100%); }
.hero .wrap { position: relative; }
.hero-home { min-height: calc(100vh - 80px); display: flex; align-items: center; }
.hero-page { padding: 120px 0 100px; }
.hero .label { color: #b9c7d8; }
.hero h1 { color: var(--white); font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; font-size: clamp(44px, 7vw, 88px); line-height: 1.02; margin-bottom: 28px; }
.hero-page h1 { font-size: clamp(40px, 6vw, 72px); }
.hero p { font-size: 19px; max-width: 680px; color: #e6edf5; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero .tagline { position: absolute; left: 24px; bottom: -64px; font-size: 11px; letter-spacing: 3px; color: #b9c7d8; text-transform: uppercase; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 36px 24px; border-right: 1px solid var(--line); font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 18px; }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 32px; font-weight: 800; }

/* Service cards (staggered) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.card { text-decoration: none; color: inherit; display: block; }
.card:nth-child(even) { margin-top: 48px; }
.card .img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--grey); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .img img { transform: scale(1.05); }
.card h3 { margin-top: 20px; font-size: 20px; }
.card p { font-size: 15px; color: #4a5866; margin-bottom: 10px; }
.card .more { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Process */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 48px; border-top: 2px solid var(--line); padding-top: 28px; position: relative; }
.process .step { position: relative; }
.process .step::before { content: ""; position: absolute; top: -36px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.process .num { font-size: 13px; color: var(--steel); font-weight: 600; letter-spacing: 2px; }
.process h3 { font-size: 17px; margin: 6px 0 8px; }
.process p { font-size: 14px; color: #5b6774; }

/* Who we work with */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.who div { background: var(--white); padding: 32px; border-top: 3px solid var(--accent); }
.section.grey .who div { background: var(--white); }
.section:not(.grey) .who div { background: var(--grey); }
.who p { font-size: 15px; color: #4a5866; margin: 0; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); padding: 64px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); margin: 0; }

/* Service detail rows */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.service-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row .label { margin-top: 4px; }
.service-row ul { padding-left: 20px; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.service-row li { margin-bottom: 8px; }
.note { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); margin-top: 20px; }

/* About stats */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.stat-cards div { background: var(--grey); border-top: 3px solid var(--accent); padding: 28px; }
.stat-cards strong { display: block; font-family: var(--head); font-size: 32px; color: var(--navy); line-height: 1.1; margin-bottom: 10px; }
.icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 32px; }
.icons div { text-align: center; padding: 28px 12px; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.icons svg { width: 40px; height: 40px; margin: 0 auto 12px; display: block; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.quals { list-style: none; padding: 0; margin: 24px 0 0; }
.quals li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
form label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
form .field { margin-bottom: 20px; }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1px solid #c7ced7; border-radius: 8px; font: inherit; font-size: 16px; color: var(--text); background: var(--white); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.form-msg { margin-top: 16px; font-weight: 600; color: var(--navy); }
.details { background: var(--grey); border-top: 3px solid var(--accent); padding: 32px; }
.details .label { margin-bottom: 4px; }
.details p { margin-bottom: 20px; }
.hidden-field { display: none; }

/* Footer */
.footer { background: var(--grey); padding: 40px 0; font-size: 14px; color: #4a5866; }
.footer .top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.footer .top img { height: 32px; }
.footer nav a { margin-left: 20px; color: var(--navy); text-decoration: none; }
.footer nav a:first-child { margin-left: 0; }
.footer p { margin: 4px 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Tablet */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(even) { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .split, .service-row, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .icons { grid-template-columns: repeat(3, 1fr); }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cards, .who, .stat-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 24px 12px; font-size: 15px; }
  .stats strong { font-size: 24px; }
  .process { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); padding: 0 0 0 24px; row-gap: 28px; }
  .process .step::before { top: 4px; left: -32px; }
  .icons { grid-template-columns: repeat(2, 1fr); }
  .footer nav a { margin: 0 16px 0 0; }
  .hero .tagline { display: none; }
}
