/* ============================================================
   Guardian Home Services — styles.css
   Color scheme: Navy / White / Slate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --navy: #2b5c9e;
  --navy-dark: #1e3f72;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --slate: #4b5563;
  --slate-light: #9ca3af;
  --white: #ffffff;
  --off-white: #f3f4f6;
  --light-gray: #e5e7eb;
  --border: #d1d5db;
  --text: #1f2937;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font: 'Open Sans', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--light-gray);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

.btn-nav {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  padding: 8px 18px;
  font-size: 14px;
}
.btn-nav:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.btn-block { display: block; width: 100%; text-align: center; }

/* ============================================================
   HEADER
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo:hover { text-decoration: none; color: var(--blue-light); }

/* Logo banner — full-width strip below the nav */
.logo-banner {
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 3px solid var(--navy);
}

.logo-banner img {
  max-height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
nav a:hover { color: var(--blue-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: linear-gradient(135deg, #0f2348 0%, #1e3f72 50%, #2b5c9e 100%);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay { position: absolute; inset: 0; background: rgba(10,22,48,0.25); }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 760px;
}

.hero-logo {
  height: 90px;
  width: auto;
  display: block;
  margin-bottom: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-content p {
  font-size: 18px;
  color: #c8d8ee;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, #1e3f72, #2b5c9e);
  padding: 72px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: #c8d8ee;
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  background: var(--navy-dark);
  padding: 32px 0;
  border-bottom: 3px solid var(--blue);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.trust-item span {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

.seo-areas {
  padding: 64px 0;
  background: var(--white);
}

.seo-areas h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.seo-areas p {
  color: var(--slate);
  font-size: 16px;
  max-width: 760px;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES OVERVIEW (homepage grid)
   ============================================================ */

.services-overview {
  padding: 80px 0;
  background: var(--off-white);
}

.services-overview h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--slate);
  font-size: 17px;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(26,46,74,0.12);
  transform: translateY(-3px);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--light-gray);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

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

.service-card-body {
  padding: 22px 24px 24px;
}

.service-card h3,
.service-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p,
.service-card-body p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 16px;
}

.service-card a,
.service-card-body a {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}

/* ============================================================
   WHY US
   ============================================================ */

.why-us {
  padding: 80px 0;
  background: var(--white);
}

.why-inner { max-width: 760px; }

.why-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

.why-text ul {
  list-style: none;
  margin-bottom: 32px;
}

.why-text ul li {
  padding: 12px 0 12px 32px;
  position: relative;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
}

.why-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
}

/* ============================================================
   CTA BAR
   ============================================================ */

.cta-bar {
  background: linear-gradient(135deg, #1e3f72, #2b5c9e);
  padding: 72px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-inner p {
  color: #c8d8ee;
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICES DETAIL (services page)
   ============================================================ */

.services-detail {
  padding: 80px 0;
  background: var(--off-white);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.service-block-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #f8fafc;
}

.service-block-text {
  padding: 40px 44px;
}

.service-block-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.service-block-text p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 16px;
}

.service-block-text ul {
  list-style: none;
  margin-bottom: 28px;
}

.service-block-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
}

.service-block-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-content {
  padding: 80px 0;
  background: var(--off-white);
}

.about-inner { max-width: 800px; }

.about-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 16px;
}
.about-text h2:first-child { margin-top: 0; }

.about-text p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 16px;
}

.about-text ul {
  list-style: none;
  margin-bottom: 32px;
}

.about-text ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
}

.about-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  padding: 80px 0;
  background: var(--off-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 28px;
}

.contact-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
}

.contact-item a, .contact-item span {
  font-size: 16px;
  color: var(--text);
}

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

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
}

.contact-form-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-note {
  font-size: 13px;
  color: var(--slate-light);
  text-align: center;
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: #1e3f72;
  color: var(--white);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 14px;
  color: var(--slate-light);
  margin-bottom: 6px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--slate-light);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--slate-light);
}

/* ============================================================
   CONTENT SECTIONS (inner pages)
   ============================================================ */

.content-section {
  padding: 72px 0;
  background: var(--white);
}

.content-section.bg-gray {
  background: var(--off-white);
}

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.content-two-col.reverse {
  direction: rtl;
}
.content-two-col.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 14px;
}
.content-text h2:first-child { margin-top: 0; }

.content-text p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

.check-list {
  list-style: none;
  margin: 0 0 24px;
}

.check-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.check-list li a {
  color: var(--blue);
  font-weight: 500;
}

.btn-outline-dark {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* ============================================================
   HIGHLIGHT BAR
   ============================================================ */

.highlight-bar {
  background: var(--navy);
  padding: 40px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.highlight-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.highlight-item span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-section {
  padding: 72px 0;
  background: var(--off-white);
}

.faq-inner {
  max-width: 820px;
}

.faq-group {
  margin-bottom: 56px;
}

.faq-group-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--light-gray);
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--blue); font-weight: 500; }

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-question {
  color: var(--navy);
  background: var(--off-white);
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-pill {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
}

.areas-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.area-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}

.area-detail-card.primary-area {
  border-color: var(--blue);
  border-width: 2px;
}

.area-detail-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.area-detail-card p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .content-two-col { grid-template-columns: 1fr; direction: ltr; }
  .content-two-col.reverse { direction: ltr; }
  .highlight-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #1e3f72;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
  }

  nav.nav-open {
    display: flex;
  }

  nav a {
    font-size: 17px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }

  nav .btn-nav {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .nav-toggle { display: block; }

  .hero-content { padding: 60px 0; }

  .service-block-text { padding: 28px 24px; }
  .service-block-photo { height: 220px; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-form-wrap { padding: 28px 20px; }

  .why-inner { max-width: 100%; }

  .cta-btns { flex-direction: column; align-items: center; }
  .hero-btns { flex-direction: column; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .content-two-col { grid-template-columns: 1fr; direction: ltr; }
  .content-two-col.reverse { direction: ltr; }
  .areas-detail-grid { grid-template-columns: 1fr; }
}
