/* Skyline home page — SCC brand kit (SCC-LOGO-COLORS.pdf) */

:root {
  --home-gold-light: #d4c5ad;
  --home-gold: #b49c75;
  --home-gold-dark: #8e7a5a;
  --home-silver-light: #b8bcbf;
  --home-silver: #81868c;
  --home-charcoal: #6e7379;
  --home-navy: #0b1323;
  --home-bg: #ffffff;
  --home-bg-alt: #f9f9f9;
  --home-card-bg: #f7f5f1;
  --home-text: #6e7379;
  --home-text-muted: #81868c;
  --home-white: #ffffff;
  --home-cta-bg: #0b1323;
  --home-nav-hover: #b49c75;
  --home-accent: #b49c75;
  --home-font-serif: "Abhaya Libre", Georgia, serif;
  --home-font-sans: Montserrat, system-ui, sans-serif;
  --home-max-width: 1200px;
  --home-radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.home-page {
  background: var(--home-bg);
  color: var(--home-text);
  font-family: var(--home-font-sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.home-page img:not(.home-header__logo):not(.home-footer__logo) {
  display: block;
  height: auto;
  max-width: 100%;
}

.home-page
  a:not(.home-btn):not(.home-footer__link):not(.home-top-bar__link):not(
    .home-cta__phone-number
  ) {
  color: inherit;
}

.home-container {
  margin: 0 auto;
  max-width: var(--home-max-width);
  padding: 0 24px;
  width: 100%;
}

.home-main {
  overflow-x: hidden;
}

/* Top bar */
.home-top-bar {
  background: var(--home-navy);
  color: var(--home-white);
  font-size: 0.8125rem;
}

.home-top-bar__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 24px;
}

.home-top-bar__item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.home-top-bar__icon {
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.home-top-bar__link {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
}

.home-top-bar__link:hover {
  text-decoration: underline;
}

/* Header / nav */
.home-header {
  background: var(--home-white);
  border-bottom: 1px solid var(--home-gold-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-header .home-header__inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  min-height: 148px;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.home-header__logo-link {
  flex-shrink: 0;
  line-height: 0;
}

.home-page .home-header__logo {
  aspect-ratio: 850 / 226.27;
  display: block;
  height: 100px;
  max-width: none;
  transform: translateY(-8px);
  width: auto;
}

.home-header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.home-header__menu-btn span {
  background: var(--home-gold-dark);
  border-radius: 1px;
  display: block;
  height: 2px;
  width: 24px;
}

.home-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--home-font-sans);
  gap: 0.5rem 1.75rem;
}

.home-nav__link {
  color: var(--home-text);
  display: block;
  font-family: var(--home-font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.5rem 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.home-nav__link:hover,
.home-nav__link.is-active {
  color: var(--home-nav-hover);
  text-decoration: none;
}

.home-btn {
  background: var(--home-gold);
  border: none;
  border-radius: var(--home-radius);
  color: var(--home-white);
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.home-btn:hover {
  background: var(--home-gold-dark);
  color: var(--home-white);
}

.home-page .home-btn,
.home-page .home-btn:hover,
.home-page .home-btn:focus {
  color: var(--home-white);
}

.home-btn--nav {
  background: var(--home-gold);
  border-radius: 8px;
  font-family: var(--home-font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
  padding: 0.75rem 1.5rem;
  text-transform: none;
}

.home-btn--nav:hover,
.home-btn--nav:focus {
  background: var(--home-gold-dark);
  box-shadow: 0 2px 8px rgba(142, 122, 90, 0.4);
  color: var(--home-white);
}

.home-btn--hero {
  font-size: 1rem;
  margin-top: 0.5rem;
  padding: 0.875rem 2rem;
}

.home-btn--submit {
  min-width: 140px;
}

/* Hero */
.home-hero {
  align-items: center;
  background-color: var(--home-navy);
  background-image:
    linear-gradient(rgba(11, 19, 35, 0.72), rgba(11, 19, 35, 0.72)),
    url("/assets/home/hero-background-d6b244e6.png");
  background-position:
    0 0,
    50% 50%;
  background-repeat: repeat, no-repeat;
  background-size:
    auto,
    auto 100%;
  color: var(--home-white);
  display: flex;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

.home-hero__content {
  padding: 4rem 24px 5rem;
  text-align: center;
  width: 100%;
}

.home-hero__lead {
  color: var(--home-silver-light);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 auto 1rem;
  max-width: 40rem;
}

.home-hero__title {
  color: var(--home-gold-light);
  font-family: var(--home-font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 1.75rem;
}

/* Sections */
.home-section {
  padding: 4rem 0;
}

.home-section--alt {
  background: var(--home-bg-alt);
}

.home-section--guarantee {
  background: var(--home-white);
}

.home-section--testimonials {
  background: var(--home-bg-alt);
}

.home-section--cta {
  background: var(--home-cta-bg);
  color: var(--home-white);
  margin-top: -1px;
  padding-top: 3.5rem;
}

.home-section__title {
  color: var(--home-gold-dark);
  font-family: var(--home-font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 2.5rem;
  text-align: center;
}

.home-section__title::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--home-gold) 20%,
    var(--home-gold) 80%,
    transparent
  );
  content: "";
  display: block;
  height: 2px;
  margin: 1rem auto 0;
  max-width: 12rem;
}

.home-section__title--light {
  color: var(--home-white);
}

.home-section__title--light::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--home-gold-light) 20%,
    var(--home-gold-light) 80%,
    transparent
  );
}

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

.home-service-card__image-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--home-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.home-service-card__image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-service-card__title {
  color: var(--home-charcoal);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.home-service-card__text {
  color: var(--home-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

/* Who we serve — alternating image + compact centered text card */
.home-serve-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.home-serve-item {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-serve-item--reverse .home-serve-item__media {
  order: 2;
}

.home-serve-item--reverse .home-serve-item__body {
  order: 1;
}

.home-serve-item__media {
  align-self: stretch;
  display: flex;
  line-height: 0;
  padding: 0.75rem;
}

.home-serve-item__image-wrapper {
  box-shadow: 0 0 10px #0000004d;
  display: flex;
  flex: 1;
  width: 100%;
}

.home-serve-item__image {
  display: block;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}

.home-serve-item__body {
  align-self: center;
  display: flex;
  justify-content: center;
  padding: 2.5rem 2rem;
  width: 100%;
}

.home-serve-item__card {
  background: var(--home-white);
  max-width: 26rem;
  padding: 2rem 2.25rem;
  width: 100%;
}

.home-serve-item__intro {
  margin: 0 auto 1.25rem;
  max-width: 100%;
  text-align: center;
  width: fit-content;
}

.home-serve-item__title {
  color: var(--home-gold-dark);
  font-family: var(--home-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.home-serve-item__rule {
  background: var(--home-nav-hover);
  display: block;
  height: 2px;
  margin: 0.75rem auto 0;
  width: 100%;
}

.home-serve-item__text {
  color: var(--home-text);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  text-align: left;
}

/* About */
.home-about {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
}

.home-about__subtitle {
  color: var(--home-gold-dark);
  font-family: var(--home-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.home-about__name {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.home-about__text {
  color: var(--home-text-muted);
  line-height: 1.65;
  margin: 0;
}

.home-about__text + .home-about__text {
  margin-top: 1rem;
}

.home-about__photo {
  border-radius: var(--home-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Testimonials */
.home-testimonials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.home-testimonial {
  background: var(--home-card-bg);
  border: 1px solid rgba(180, 156, 117, 0.25);
  border-radius: var(--home-radius);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem;
}

.home-testimonial__stars {
  color: var(--home-nav-hover);
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-testimonial__star {
  display: block;
  flex-shrink: 0;
}

.home-testimonial__quote {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.home-testimonial__author {
  font-size: 0.875rem;
  font-style: normal;
  margin-top: auto;
  text-align: right;
}

.home-testimonial__name {
  display: block;
  font-style: normal;
  font-weight: 600;
}

.home-testimonial__company {
  color: var(--home-text-muted);
  display: block;
}

/* Guarantee */
.home-guarantee-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.home-guarantee-card {
  text-align: center;
}

.home-guarantee-card__icon {
  align-items: center;
  border: 3px solid var(--home-gold);
  border-radius: 50%;
  color: var(--home-gold-dark);
  display: inline-flex;
  height: 78px;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 78px;
}

.home-guarantee-card__symbol {
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 48px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
  font-weight: normal;
  line-height: 1;
}

.home-guarantee-card__title {
  color: var(--home-charcoal);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.home-guarantee-card__text {
  color: var(--home-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 22rem;
}

/* Steps */
.home-section--steps {
  background: var(--home-white);
  padding-bottom: 0;
  position: relative;
}

.home-steps {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(4, 1fr);
}

.home-step {
  text-align: center;
}

.home-step__badge {
  align-items: center;
  background: var(--home-silver-light);
  border-radius: 50%;
  display: inline-flex;
  height: 88px;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 88px;
}

.home-step__number {
  align-items: center;
  background: var(--home-gold);
  border-radius: 50%;
  color: var(--home-white);
  display: inline-flex;
  font-size: 1.75rem;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  line-height: 1;
  width: 56px;
}

.home-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.home-step__text {
  color: var(--home-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 16rem;
}

.home-steps__curve {
  color: var(--home-cta-bg);
  line-height: 0;
  margin-top: 3.5rem;
}

.home-steps__curve-svg {
  display: block;
  height: 72px;
  width: 100%;
}

/* CTA / form */
.home-cta {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
  text-align: center;
}

.home-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.home-form__actions {
  margin-top: 1.25rem;
}

.home-form__input {
  background: var(--home-white);
  border: 1px solid #ccc;
  border-radius: var(--home-radius);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

.home-form__input:focus {
  border-color: var(--home-gold);
  outline: 2px solid rgba(180, 156, 117, 0.35);
  outline-offset: 0;
}

.home-cta__call {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 1rem;
  opacity: 0.9;
}

.home-cta__call-lead {
  display: block;
}

.home-cta__phone-number {
  color: var(--home-white);
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.home-cta__phone-number:hover {
  color: var(--home-white);
  opacity: 0.85;
  text-decoration: none;
}

.estimate-form-errors {
  background: #fde8e8;
  border: 1px solid #f5c2c2;
  border-radius: var(--home-radius);
  color: #7f1d1d;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

.estimate-form-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.flash-notice {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--home-radius);
  color: #1b5e20;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

/* Footer */
.home-footer {
  background: var(--home-white);
  color: var(--home-text);
  font-size: 0.9375rem;
  padding: 3.5rem 0 2.5rem;
}

.home-footer__main {
  align-items: start;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.home-page .home-footer__logo {
  aspect-ratio: 700 / 476.28;
  display: block;
  height: 160px;
  max-width: none;
  width: auto;
}

.home-footer__heading {
  color: var(--home-gold-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.home-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-footer__link {
  color: var(--home-text);
  text-decoration: none;
}

.home-footer__link:hover {
  color: var(--home-gold-dark);
  text-decoration: underline;
}

.home-footer__contact p {
  line-height: 1.5;
  margin: 0 0 0.35rem;
}

.home-footer__contact p:last-child {
  margin-bottom: 0;
}

.home-footer__divider {
  border: 0;
  border-top: 1px solid var(--home-gold-light);
  margin: 2.5rem 0 1.5rem;
}

.home-footer__copy {
  color: #9a9a9a;
  font-size: 0.8125rem;
  margin: 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-testimonials {
    grid-template-columns: 1fr;
  }

  .home-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-guarantee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .home-top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 16px;
  }

  .home-top-bar__item {
    justify-content: center;
    width: 100%;
  }

  .home-header .home-header__inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: unset;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
    position: relative;
  }

  .home-header__logo-link {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: 0;
  }

  .home-page .home-header__logo {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    transform: none;
    width: 100%;
  }

  .home-header__menu-btn {
    display: flex;
    flex-shrink: 0;
  }

  .home-nav {
    background: var(--home-white);
    border-bottom: 1px solid var(--home-gold-light);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 1rem 24px 1.5rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .home-nav.is-open {
    display: flex;
  }

  .home-nav__link {
    padding: 0.625rem 0;
  }

  .home-btn--nav {
    margin-top: 0.5rem;
    width: 100%;
  }

  .home-serve-item,
  .home-serve-item--reverse {
    grid-template-columns: 1fr;
  }

  .home-serve-item--reverse .home-serve-item__media,
  .home-serve-item--reverse .home-serve-item__body {
    order: unset;
  }

  .home-serve-item__image {
    min-height: 220px;
  }

  .home-serve-item__body {
    padding: 1.5rem 1.25rem;
  }

  .home-serve-item__card {
    max-width: none;
    padding: 1.75rem 1.5rem;
  }

  .home-serve-item__title {
    font-size: 1.5rem;
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-guarantee-grid {
    grid-template-columns: 1fr;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-steps__curve-svg {
    height: 48px;
  }

  .home-footer__main {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .home-footer__brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .home-page .home-footer__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .home-footer__column {
    text-align: center;
  }

  .home-footer__nav {
    align-items: center;
  }

  .home-hero__content {
    padding: 3.5rem 24px 4rem;
  }
}
