/* Architecture theme overrides and hero styling */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600;800&family=Roboto:wght@300;400;700&display=swap');

:root {
  --accent: #D4AF37; /* gold accent */
  --primary-dark: #0B1D3A;
  --muted: #6b7280;
  --strap: #d9cdb7; /* dark beige strap behind image+text */
}

/* Use a clean modern font for headings */
h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; }
body { font-family: 'Roboto', system-ui, sans-serif; }

.hero {
  color: white;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center center;
  padding: 6.5rem 0 4.5rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,9,20,0.55) 0%, rgba(3,9,20,0.45) 40%, rgba(3,9,20,0.65) 100%);
  pointer-events: none;
}

.hero__content {
  text-align: left;
  max-width: 1100px;
  padding: 2.25rem;
  position: relative; /* above overlay */
}

.hero__content--center { text-align: center; margin: 0 auto; }

.hero__title {
  letter-spacing: 0.6px;
  font-size: 3.4rem;
  margin: 0 0 0.35rem 0;
  color: var(--accent);
  text-transform: none;
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(3,9,20,0.45);
}

.hero__subtitle {
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.hero__tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: #e6eef8;
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.btn--primary {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 0.6rem;
  box-shadow: 0 8px 20px rgba(20,20,20,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  display: inline-block;
}

.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20,20,20,0.16); }

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn--secondary:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
  align-items: start;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(3,9,20,0.06);
  padding: 1rem 1.25rem;
  overflow: hidden;
  /* Architecture theme overrides and hero styling */
  @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600;800&family=Roboto:wght@300;400;700&display=swap');

  :root {
    --accent: #D4AF37; /* gold accent */
    --primary-dark: #0B1D3A;
    --muted: #6b7280;
    --strap: #d9cdb7; /* dark beige strap behind image+text */
  }

  /* Use a clean modern font for headings */
  h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; }
  body { font-family: 'Roboto', system-ui, sans-serif; }

  .hero {
    color: white;
    position: relative;
    background-image: url('../assets/images/wall-4575052_1920.webp');    background-position: center center;
    padding: 6.5rem 0 4.5rem 0;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,9,20,0.55) 0%, rgba(3,9,20,0.45) 40%, rgba(3,9,20,0.65) 100%);
    pointer-events: none;
  }

  .hero__content {
    text-align: left;
    max-width: 1100px;
    padding: 2.25rem;
    position: relative; /* above overlay */
  }

  .hero__content--center { text-align: center; margin: 0 auto; }

  .hero__title {
    letter-spacing: 0.6px;
    font-size: 3.4rem;
    margin: 0 0 0.35rem 0;
    color: var(--accent);
    text-transform: none;
    line-height: 1.05;
    text-shadow: 0 6px 18px rgba(3,9,20,0.45);
  }

  .hero__subtitle {
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
  }

  .hero__tagline {
    color: #e6eef8;
    margin-bottom: 1.35rem;
    font-size: 1.05rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn--primary {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.75rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 0.6rem;
    box-shadow: 0 8px 20px rgba(20,20,20,0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    display: inline-block;
  }

  .btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20,20,20,0.16); }

  .btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 0.95rem;
    border-radius: 8px;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  }
  .btn--secondary:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

  .services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 2rem;
    align-items: start;
  }

  .service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(3,9,20,0.06);
    padding: 1rem 1.25rem;
    overflow: hidden;
    transition: transform 260ms cubic-bezier(.2,.9,.27,1), box-shadow 260ms ease;
    display: flex;
    gap: 1rem;
    align-items: stretch;
  }

  .service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(3,9,20,0.12); }

  .service-card__media img {
    width: 100%;
    height: 220px; /* balanced for card layout */
    object-fit: cover;
    display: block;
    border-radius: 10px;
  }

  .service-card__media { flex: 0 0 320px; max-width: 320px; }
  .service-card__body { flex: 1 1 auto; padding: 0.25rem 0; }

  .service-card__title { margin-top: 0; }

  .service-card__media img { transition: transform 320ms ease; }
  .service-card:hover .service-card__media img { transform: scale(1.04); }

  /* Stack services vertically and add reveal animation */
  /* secondary declaration removed (handled above) */

  .service-card { width: 100%; max-width: 1100px; opacity: 0; transform: translateY(12px); }

  @keyframes revealUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .service-card.animate-in {
    animation: revealUp 600ms ease-out forwards;
  }

  /* What we do */
  .what-we-do { padding: 3rem 0; }
  .what-we-do__entry { position: relative; background: rgba(255,255,255,0.9); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 8px 26px rgba(3,9,20,0.04); overflow: hidden; }
  .what-we-do__entry h3 { margin-top: 0; color: var(--primary-dark); }
  .what-we-do__entry ul { margin-left: 1rem; color: var(--muted); }

  /* faded background image variant */
  .what-we-do__entry--bg {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.86) 100%);
  }
  .what-we-do__entry--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    filter: blur(2px) saturate(0.9);
    z-index: 0;
  }
  .what-we-do__entry--bg > * { position: relative; z-index: 1; }

  /* New row/strap layout */
  .what-we-do__row { display:flex; align-items:stretch; gap:1.25rem; position:relative; background: var(--strap); border-radius:10px; padding:0.75rem; overflow:hidden; }
  .what-we-do__media { flex: 0 0 44%; min-height:220px; background-size:cover; background-position:center; border-radius:8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
  .what-we-do__content { flex:1 1 56%; padding: 0.6rem 1rem; background: transparent; }
  .what-we-do__content h3 { margin-top:0; }

  /* Alternate rows: even rows flip order */
  .what-we-do__entry:nth-of-type(even) .what-we-do__row { flex-direction: row-reverse; }

  /* make media and content stack on small screens */
  @media (max-width:900px) {
    .what-we-do__row { flex-direction: column; }
    .what-we-do__media { width:100%; min-height:180px; }
    .what-we-do__content { padding: 0.75rem 0.25rem; }
  }

  /* subtle overlay on media to ensure legibility */
  .what-we-do__media::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.06)); border-radius:8px; }

  /* small helpers */
  .section__lead { color: #cbd5e1; max-width: 920px; margin: 0.5rem auto 1rem auto; }

  /* Responsive grid for larger screens */
  @media (min-width: 920px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service-card__media img { height: 100%; min-height: 220px; }
  }

  .service-card__title { color: var(--primary-dark); margin: 0.35rem 0; }
  .service-card__description { color: var(--muted); font-size: 0.95rem; }

  /* Footer tweaks for theme coherence */
  .footer { background: #071428; color: #dbeafe; padding: 2.5rem 0; }
  .footer a { color: #dbeafe; }

  @media (max-width: 900px) {
    .hero__title { font-size: 2.6rem; }
    .hero { padding: 4.5rem 0; }
    .service-card { flex-direction: column; }
    .service-card__media { max-width: 100%; flex: 0 0 auto; }
    .service-card__media img { height: 220px; }
  }

  @media (max-width: 480px) {
    .hero__title { font-size: 1.9rem; }
    .hero { padding: 3rem 0; }
    .service-card__media img { height: 160px; }
    .service-card { padding: 0.75rem; }
  }

  /* subtle focus states */
  .btn:focus { outline: 3px solid rgba(212,175,55,0.22); outline-offset: 2px; }
