/* =====================================================================
   Across Time Building Services — Main Stylesheet
   ===================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --navy:   #1B2B4B;
  --navy-light: #243660;
  --gold:   #C8972A;
  --gold-light: #DEB24A;
  --light:  #F4F3EE;
  --grey:   #6B7280;
  --dark:   #1a1a1a;
  --white:  #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 4px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { color: #4B5563; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 80px 0; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 43, 75, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,151,42,0.25);
  transition: box-shadow 0.3s;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo .logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(27,43,75,0.96) 0%, rgba(27,43,75,0.85) 50%, rgba(27,43,75,0.95) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 60px 60px;
}
/* Blueprint grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,151,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,151,42,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero-eyebrow span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,151,42,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,43,75,0.3); }

/* ── Services Section ────────────────────────────────────── */
.services-section { background: var(--light); }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header p {
  max-width: 560px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border-bottom: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}
.service-card:hover {
  border-bottom-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(27,43,75,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; color: var(--navy); }
.service-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.service-card p { font-size: 0.92rem; line-height: 1.65; }

/* ── About Section ───────────────────────────────────────── */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}
.about-image-placeholder svg { width: 64px; height: 64px; opacity: 0.3; }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 24px rgba(200,151,42,0.4);
}
.about-badge .badge-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.about-badge .badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  opacity: 0.9;
}
.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1.25rem; }
.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.75rem 0;
  padding: 1.5rem;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.credential-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.credential-item strong { color: var(--navy); }

/* ── Why Choose Us ───────────────────────────────────────── */
.why-section { background: var(--navy); }
.why-section .section-header h2,
.why-section .section-label { color: var(--white); }
.why-section .section-header p { color: rgba(255,255,255,0.65); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(200,151,42,0.12);
  border: 1.5px solid rgba(200,151,42,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.why-icon svg { width: 28px; height: 28px; color: var(--gold); }
.why-card h3 { color: var(--white); margin-bottom: 0.6rem; font-size: 1.15rem; }
.why-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ── Process Section ─────────────────────────────────────── */
.process-section { background: var(--light); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 0 1rem;
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(27,43,75,0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon svg { width: 26px; height: 26px; color: var(--white); }
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; }

/* ── Projects Section ────────────────────────────────────── */
.projects-section { background: var(--white); }
.projects-placeholder {
  background: var(--light);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed rgba(27,43,75,0.15);
}
.projects-placeholder svg { width: 64px; height: 64px; color: rgba(27,43,75,0.2); margin: 0 auto 1.25rem; }
.projects-placeholder h3 { margin-bottom: 0.75rem; }
.projects-placeholder p { max-width: 440px; margin: 0 auto 1.5rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-thumb {
  aspect-ratio: 4/3;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--navy);
  padding: 32px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.trust-item strong { color: var(--white); }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, #A8781B 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.btn-white:hover { background: var(--light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ── Contact Section ─────────────────────────────────────── */
.contact-section { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-detail-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.2rem;
}
.contact-detail-text p, .contact-detail-text a {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}
.contact-detail-text a:hover { color: var(--gold); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { margin-bottom: 1.5rem; font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 0.75rem;
}
.form-success {
  display: none;
  background: #D1FAE5;
  color: #065F46;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0F1929;
  color: rgba(255,255,255,0.6);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-brand .logo-main { color: var(--white); font-size: 1.15rem; }
.footer-brand .logo-sub { color: var(--gold); }
.footer-brand p {
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: 0.875rem; }
.footer-credentials {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.9;
}
.footer-credentials span { display: block; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ── Page Banner (inner pages) ───────────────────────────── */
.page-banner {
  background: var(--navy);
  padding: 120px 0 60px;
  text-align: center;
}
.page-banner .section-label { justify-content: center; display: flex; }
.page-banner h1 { color: var(--white); margin-top: 0.5rem; font-size: clamp(2rem,4vw,3rem); }
.page-banner p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0.75rem auto 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── Alert / Flash ───────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { bottom: -1rem; right: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
