/* ==========================================================================
   Global Stylesheet — EB Website Cloner
   Generated during homepage clone. Shared across all pages.
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* --- Design Tokens --- */

:root {
  /* Typography */
  --font-family: 'Kanit', sans-serif;

  /* Brand colours — GRT Roofing */
  --brand-primary: #c00014;          /* GRT red — primary CTAs */
  --brand-primary-hover: #9e0010;    /* darker red hover */
  --brand-accent: #1b75bb;           /* secondary blue CTA */
  --brand-accent-hover: #155d96;     /* darker blue hover */

  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-light: #f1f2f3;
  --bg-soft: #f5f7fa;                /* very light blue-grey */
  --bg-dark: #003a7a;                /* dark blue footer */
  --bg-reviews: #2773ba;
  --white: #ffffff;
  --black: #000000;

  /* Text */
  --text-primary: #1a1a1a;
  --text-muted: #5a6472;
  --text-light: rgba(255, 255, 255, 0.92);

  /* Borders */
  --border-light: #e3e5e8;

  /* Shadows */
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-button: 0 6px 18px rgba(192, 0, 20, 0.28);
  --shadow-inset: none;
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-family);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background-color: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-button);
}
.btn--primary:hover { background-color: var(--brand-primary-hover); }

.btn--accent {
  background-color: var(--brand-accent);
  color: var(--white);
}
.btn--accent:hover { background-color: var(--brand-accent-hover); }

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { background-color: var(--white); color: var(--brand-primary); }

/* --- Interactive states --- */
.is-open { display: block !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  background: var(--white);
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.site-header__topbar {
  background: var(--brand-primary);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  max-width: 1360px;
  margin: 0 auto;
}
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--white);
}
.site-header__topbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__topbar-links a {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.site-header__topbar-links a:hover { opacity: 0.75; }
.site-header__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  transition: background 0.2s ease;
  font-size: 13px;
}
.site-header__socials a:hover { background: rgba(255, 255, 255, 0.32); }

.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: 1360px;
  margin: 0 auto;
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { max-height: 64px; width: auto; }

.site-header__nav { flex: 1; display: flex; justify-content: center; }
.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.site-header__nav-list > li > a {
  display: inline-block;
  padding: 8px 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-header__nav-list > li > a:hover,
.site-header__nav-list > li[aria-current="page"] > a,
.site-header__nav-list > li > a[aria-current="page"] {
  color: var(--brand-primary);
}
.site-header__nav-item { position: relative; }
.site-header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 12px 0;
  background: var(--white);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  list-style: none;
  z-index: 100;
}
.site-header__nav-item:hover > .site-header__submenu,
.site-header__nav-item:focus-within > .site-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-header__submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s ease, color 0.15s ease;
}
.site-header__submenu a:hover {
  background: var(--bg-light);
  color: var(--brand-primary);
}

.site-header__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  border: none;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .site-header__topbar-links { display: none; }
  .site-header__nav { display: none; }
  .site-header__mobile-toggle { display: inline-flex; }
  .site-header__nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-card);
    z-index: 80;
  }
  .site-header__nav.is-open .site-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .site-header__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }
  .site-header__nav-item:hover > .site-header__submenu { display: none; }
  .site-header__nav-item.is-open > .site-header__submenu { display: block; }
}

@media (max-width: 768px) {
  .site-header__topbar-inner { padding: 8px 16px; gap: 8px; font-size: 12px; }
  .site-header__socials { display: none; }
  .site-header__main { padding: 12px 16px; gap: 12px; }
  .site-header__logo img { max-height: 48px; }
  .site-header__cta .btn { padding: 10px 18px; font-size: 13px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px 0 0;
  font-size: 14px;
}
.site-footer a { color: var(--text-light); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--white); }

.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.site-footer__logo img { max-height: 60px; width: auto; }
.site-footer__brand-copy { color: var(--text-light); line-height: 1.6; max-width: 320px; }
.site-footer__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer__socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background 0.2s ease;
  font-size: 14px;
}
.site-footer__socials a:hover { background: var(--brand-primary); }

.site-footer__badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer__badges img { max-height: 48px; width: auto; background: var(--white); padding: 6px; border-radius: 4px; }

.site-footer__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.site-footer__list { display: flex; flex-direction: column; gap: 8px; }
.site-footer__list a { display: inline-block; padding: 2px 0; }

.site-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.site-footer__contact a, .site-footer__contact span { line-height: 1.5; }
.site-footer__contact strong { color: var(--white); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
}
.site-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.site-footer__legal { display: flex; gap: 24px; }

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-footer { padding-top: 48px; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .site-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Below this line: styles appended by the assembler during subsequent
   page clones (CSS growth and promotion). Do not manually edit.
   ========================================================================== */
