/* ==========================================================
   SIEGAR Architectural Systems – Landing page
   ========================================================== */

:root {
  --cream: #fbf5ec;
  --cream-rgb: 251, 245, 236;
  --ink: #222120;
  --text: #3a3734;
  --copper: #b8561f;
  --copper-light: #e07a35;
  --skew: -9deg;
  --skew-inv: 9deg;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Montserrat", "Segoe UI", Arial, sans-serif;
}

html,
body {
  background: var(--cream);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 2.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 78%;
  background: url("../images/bg-banner.png") center top / cover no-repeat;
}

/* Cream wash: soft center behind the text, fades into the page below */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 60% at 50% 38%, rgba(var(--cream-rgb), .93) 0%, rgba(var(--cream-rgb), .7) 55%, rgba(var(--cream-rgb), 0) 100%),
    linear-gradient(to right, rgba(var(--cream-rgb), .55) 0%, rgba(var(--cream-rgb), .15) 30%, rgba(var(--cream-rgb), 0) 65%),
    linear-gradient(to bottom, rgba(var(--cream-rgb), .35) 0%, rgba(var(--cream-rgb), .1) 45%, rgba(var(--cream-rgb), .6) 80%, var(--cream) 100%);
}

.brand-logo {
  width: 270px;
  max-width: 78%;
  height: auto;
}

/* ---------- Intro ---------- */
.intro {
  margin-top: 1rem;
}

.headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 6vw, 6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

/* Sloped roman: keeps the upright two-storey "a" while leaning like the reference */
.headline-text {
  display: inline-block;
  transform: skewX(-14deg);
}

.headline .accent {
  color: var(--copper);
}

.lead-text {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--text);
  margin-bottom: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.25rem;
}

.section-title h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
  white-space: nowrap;
}

.section-title .line {
  width: 115px;
  height: 1px;
  background: var(--copper);
  opacity: .6;
}

/* ---------- Service cards ---------- */
.services-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
}

.services {
  display: flex;
  gap: 6px;
  padding: 0 2.2rem;
}

.service-card {
  position: relative;
  flex: 1 1 0;
  height: 330px;
  overflow: hidden;
  transform: skewX(var(--skew));
  box-shadow: 0 0 0 1px rgba(255, 214, 170, .45), 0 14px 30px -18px rgba(60, 30, 10, .55);
  cursor: default;
}

.service-inner {
  position: absolute;
  inset: 0 -18%;
  transform: skewX(var(--skew-inv));
}

.service-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.service-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 19, 16, .95) 0%, rgba(22, 19, 16, .7) 28%, rgba(22, 19, 16, .15) 60%, rgba(22, 19, 16, 0) 75%);
  transition: background .5s ease;
}

.service-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--copper-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s ease;
}

.service-rule {
  display: block;
  width: 54px;
  height: 2px;
  margin: .35rem 0 1rem;
  background: var(--copper-light);
  transition: width .5s ease;
}

.service-content h3 {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.service-card:hover .service-inner img {
  transform: scale(1.07);
}

.service-card:hover .service-icon {
  transform: translateY(-4px);
}

.service-card:hover .service-rule {
  width: 84px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 0 0 2.5rem;
}

.contact-bar {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(184, 86, 31, .55);
  padding-top: 1.6rem;
}

.contact-item {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: .25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-item + .contact-item {
  border-left: 1px solid rgba(184, 86, 31, .55);
}

.contact-address {
  flex-grow: 1.4;
  justify-content: flex-start;
}

.contact-address address {
  border-left: 1px solid rgba(184, 86, 31, .55);
  padding-left: 2.5rem;
  line-height: 1.45;
}

.contact-item i {
  font-size: 1.6rem;
  color: var(--copper-light);
  line-height: 1;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: color .3s ease;
}

.contact-item a:hover {
  color: var(--copper);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .service-card { height: 280px; }
  .service-content h3 { font-size: .82rem; letter-spacing: .24em; }
  .contact-item { padding: .25rem 1rem; gap: 1rem; font-size: .92rem; }
  .contact-address address { padding-left: 1.5rem; }
}

@media (max-width: 991.98px) {
  .hero { padding-top: 2.5rem; }
  .hero-bg { height: 60%; }

  .services-wrap {
    max-width: 720px;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }

  .service-card,
  .service-inner {
    transform: none;
  }

  .service-card { height: 260px; }
  .service-inner { inset: 0; }

  .contact-bar {
    display: grid;
    grid-template-columns: repeat(3, auto);
    row-gap: 1.25rem;
  }

  .contact-item,
  .contact-address {
    justify-content: flex-start;
  }

  .contact-address {
    grid-column: 1 / -1;
  }

  .contact-address + .contact-item {
    border-left: 0;
  }
}

@media (max-width: 767.98px) {
  .section-title { gap: 1rem; }
  .section-title .line { width: 48px; }
  .section-title h2 { font-size: .85rem; letter-spacing: .28em; }

  .contact-bar {
    grid-template-columns: 1fr;
  }

  .contact-item + .contact-item {
    border-left: 0;
  }

  .contact-item { padding: .25rem 0; }

  .contact-address address {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .hero { padding: 2rem 0 2rem; }
  .hero-bg { height: 50%; }

  .services { grid-template-columns: 1fr; }
  .service-card { height: 220px; }
}
