/* =========================================================================
   Rameswaram Prohithar — custom stylesheet
   Every token below is lifted from the WordPress backup:
     • Divi theme options (wp_options.et_divi)
     • Divi grid CSS (row.css / section.css / gutters2-4.css)
     • Divi Essential module CSS (hover effects)
     • Per-module shortcode attributes on pages 44 / 277 / 278 / 260
   ========================================================================= */

/* ---------- Font: Jost, self-hosted (OFL, shipped with the backup) ------- */
@font-face {
  font-family: 'Jost';
  /* Must match the <link rel="preload"> href in header.php byte-for-byte,
     otherwise the browser treats it as a second URL and downloads the font
     twice. Both are the unversioned path. */
  src: url('/assets/fonts/Jost-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand — Divi header/footer layouts */
  --maroon: #941e3c;
  --orange: #ff7420;
  --maroon-soft: rgba(148, 30, 60, 0.22);   /* service row tint */
  --orange-soft: rgba(255, 122, 40, 0.34);  /* pooja services section bg */

  /* Typography — et_divi options */
  --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body-size: 17px;         /* body_font_size */
  --body-weight: 400;        /* body_font_weight */
  --body-color: #616161;     /* font_color */
  --heading-color: #161616;  /* header_color */
  --heading-weight: 600;     /* heading_font_weight */
  --link: #941e3c;           /* link_color */

  /* Divi heading scale: body_header_size 43 × .86 / .73 / .60 / .53 / .47 */
  --h1: 43px;
  --h2: 36.98px;
  --h3: 31.39px;
  --h4: 25.8px;
  --h5: 22.79px;
  --h6: 20.21px;

  --content-width: 1300px;   /* content_width */
  --radius-pill: 40px;       /* button border radius */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchor links land below the sticky header */
[id] { scroll-margin-top: 130px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: 1.7em;         /* Divi body default */
  color: var(--body-color);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  /* Divi's original line-height was exactly 1em (font-size == line-height).
     Bumped to 1.25em site-wide for readability — applies uniformly to
     every heading (hero, section titles, cards, footer). */
  margin: 0;
  padding: 0 0 10px;
  font-family: var(--font);
  font-weight: var(--heading-weight);
  line-height: 1.25em;
  color: var(--heading-color);
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--orange); }

img, picture, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

/* Visible keyboard focus everywhere (Divi shipped none) */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--maroon); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* =========================================================================
   Divi grid — section / row / column
   ========================================================================= */
.section { position: relative; background: #fff; padding: 4% 0; }
.section--flush { padding: 0; }

.row {
  width: 80%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2% 0;
  position: relative;
}
.row--w90   { width: 90%; }
.row--w100  { width: 100%; max-width: 2560px; }
.row--flush { padding: 0; }

.cols { display: flex; flex-wrap: wrap; }
.cols--equal { align-items: stretch; }

/* Gutter 3 (Divi default) */
.cols--g3 > .col { margin-right: 5.5%; }
.cols--g3 > .col:last-child { margin-right: 0; }
.cols--g3 > .c1_2 { width: 47.25%; }
.cols--g3 > .c1_3 { width: 29.6667%; }
.cols--g3 > .c2_3 { width: 64.833%; }
.cols--g3 > .c1_4 { width: 20.875%; }
.cols--g3 > .c3_4 { width: 73.625%; }
.cols--g3 > .c1_5 { width: 15.6%; }
.cols--g3 > .c2_5 { width: 36.7%; }
.cols--g3 > .c3_5 { width: 57.8%; }

/* Gutter 2 */
.cols--g2 > .col { margin-right: 3%; }
.cols--g2 > .col:last-child { margin-right: 0; }
.cols--g2 > .c1_2 { width: 48.5%; }
.cols--g2 > .c1_3 { width: 32.3333%; }
.cols--g2 > .c2_3 { width: 64.6667%; }
.cols--g2 > .c1_4 { width: 22.75%; }
.cols--g2 > .c3_4 { width: 74.25%; }
.cols--g2 > .c1_5 { width: 17.6%; }
.cols--g2 > .c2_5 { width: 38.2%; }
.cols--g2 > .c3_5 { width: 58.8%; }

/* Gutter 4 */
.cols--g4 > .col { margin-right: 8%; }
.cols--g4 > .col:last-child { margin-right: 0; }
.cols--g4 > .c1_4 { width: 19%; }

.col { position: relative; min-height: 1px; }
.col--center { margin-top: auto; margin-bottom: auto; }

/* =========================================================================
   Header — Divi header layout #28
   ========================================================================= */
.announce {
  /* Live: 12px text on a 28.9px line box (the body's 1.7em of 17px, inherited
     rather than recomputed from 12px) and no vertical padding — total 29px. */
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  line-height: 28.9px;
  text-align: center;
  padding: 0 16px;
}

.site-header {
  position: sticky;      /* divi_fixed_nav = on */
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Live header geometry at 1440: total 129px = 29px announcement bar + 100px
   main row, the row 1283px wide with 71.25px side margins.
   Divi builds it as two columns: a 3/4 column holding the logo + menu, and a
   1/4 column holding the CTA. Inside the 3/4 column the logo keeps its natural
   width (320x100, 30px right margin) and the menu is CENTRED in the space that
   remains — which is why the menu sits at x=525 and not hard against the logo.
   The CTA is centred inside its own 1/4 column. */
.header-bar {
  width: 90%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  min-height: 100px;
}

.header-main {
  flex: 0 0 74.2%;      /* Divi 3/4 column: 952 / 1283 */
  margin-right: 3%;     /* Divi column gutter: 38.47 / 1283 */
  display: flex;
  align-items: center;
}

/* Divi's .et_pb_menu__logo-wrap measures 371px: the 320px logo, its 30px right
   margin, and ~21px of line box from the inline <a>. Reserving 371px here
   reproduces it directly, which is what puts the menu's centring box at
   x=442 and the first menu item at x=514. */
.logo { flex: 0 0 371px; margin-right: 0; }
.logo img { width: 320px; max-width: 100%; }

.nav { flex: 1 1 auto; display: flex; align-items: stretch; justify-content: center; }
.nav > ul {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > ul > li { padding: 0 11px; }

/* Live menu links: 18px / line-height 14px, padding 31px 0 */
.nav a {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 14px;
  color: var(--maroon);
  padding: 31px 0;
  transition: color .3s ease;
}
.nav a:hover,
.nav .is-current > a { color: var(--orange); }

/* Dropdown — Divi: white panel, maroon top border */
.nav li { position: relative; }
/* Divi puts the dropdown caret inside the link via padding-right:20px (the
   live "Pooja Services" <a> computes to padding 31px 20px 31px 0). Our caret
   is a real button for keyboard users, so it is absolutely positioned into
   that same 20px gutter — otherwise it wraps onto a second line and pushes
   the whole header bar from 100px to 110px tall. */
.nav .has-sub > a { padding-right: 20px; }
.nav .has-sub > .sub-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  border: 0; background: none; padding: 0; margin: 0;
  color: inherit; cursor: pointer; font: inherit; display: inline-flex;
}
.nav .sub {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border-top: 3px solid var(--maroon);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav li:hover > .sub,
.nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a {
  font-size: 16px;
  font-weight: 500;
  padding: 7px 20px;
  color: var(--maroon);
}
.nav .sub a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
  color: var(--orange);
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: currentColor; transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Buttons — Divi Essential blurb button, sweep-to-right hover
   ========================================================================= */
.btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--maroon);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}

/* Live CTA: 129x44, font-size 17px, line-height 34px, padding 5.1px 17px,
   margin-top 20px, centred in the remaining 1/4 column (auto side margins).
   Declared after .btn so it wins on equal specificity. */
.header-cta {
  flex: 0 0 auto;
  align-self: flex-start;   /* Divi anchors it to the column top, not centre */
  padding: 5.1px 17px;
  min-height: 44px;
  line-height: 34px;
  font-weight: 400;         /* live CTA is 400, not the .btn default */
  /* 31px puts the button at y=59 inside the 100px row, matching the live
     wrapper's 20px margin plus its line box. */
  margin: 31px auto 0;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s ease-out;
}
.btn:hover,
.btn:focus-visible { color: #fff; }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }
.btn--pop:hover { transform: scale(1.05); }
.btn .ic { width: 18px; height: 18px; }

/* =========================================================================
   Eyebrow label — dnxte_blurb pre-heading (star icon + small caps text)
   ========================================================================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7em;
  margin: 0 0 4px;
}
.eyebrow .ic { width: 20px; height: 20px; color: var(--orange); }
.eyebrow--center { justify-content: center; }

/* Divi's et_pb_heading: 43px at body_header_size, line-height 1em. The
   -10px top margin is the custom_margin="-10px||10px||false|false" from the
   builder. */
.section-title { margin: -10px 0 0; font-size: var(--h1); }
.section-title--center { text-align: center; }

.lead { text-align: justify; }

/* =========================================================================
   Home — hero (looping banner video over the still fallback)
   ========================================================================= */
.hero { padding: 0; }
.hero .row { padding: 0; width: 100%; max-width: 2560px; }
.hero-media { position: relative; line-height: 0; }
.hero-media img,
.hero-media video { width: 100%; display: block; }
.hero-media video {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

/* Feature list — dnxte_feature_list */
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flist--2 { grid-template-columns: repeat(2, 1fr); }
.flist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 1.7em;
  padding-bottom: 10px;
}
.flist .ic { color: var(--maroon); width: 18px; height: 18px; margin-top: .35em; }

/* Specialities — icon + heading rows */
.spec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 0;
}
.spec img { width: 48px; height: 48px; }
.spec h3 { margin: 0; font-size: 25px; }

/* =========================================================================
   Pooja service cards (home) — white cards with an overlapping round image
   ========================================================================= */
.pooja-section { background: var(--orange-soft); }

.card {
  background: #fff;
  height: 100%;
  padding-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.card-img {
  margin: -50px auto 0;
  width: 80%;
  max-width: 240px;
}
.card-img img { width: 100%; }
.card h3 {
  /* Live site: 23px / line-height 23px, padding 30px top, 10px bottom.
     The 20px horizontal is this card's own gutter. */
  margin: 0;
  padding: 30px 20px 10px;
  font-size: 23px;
}
.card p {
  margin: 0;
  padding: 10px 20px 20px;
  font-size: var(--body-size);
}
.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-link:hover h3 { color: var(--maroon); }

.cards-row { margin-top: 50px; }
.cards-row + .cards-row { margin-top: 80px; }

/* =========================================================================
   Counters — et_pb_number_counter over a fixed pooja background
   ========================================================================= */
.bg-fixed {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* divi_custom_css #bg-img */
}
/* Divi background_blend="overlay": the colour is blended INTO the image on the
   same element via background-blend-mode — it is not a separate scrim layered
   on top. A flat rgba scrim just washes the image out; `overlay` keeps darks
   dark and highlights bright, which is why the original reads richer.
   Verified live: background-color rgba(0,0,0,.63) + blend overlay. */
.counters {
  position: relative;
  background-color: rgba(0, 0, 0, 0.63);
  background-blend-mode: overlay;
}
.counter { text-align: center; }
.counter .num {
  display: block;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--orange);
}
.counter h3 {
  /* Live site: 18px / line-height 18px, rgba(255,255,255,.95) */
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* =========================================================================
   Bhoomi Pooja gallery
   ========================================================================= */
.gallery-stack > * + * { margin-top: 30px; }
.gallery-stack img,
.gallery-video video { width: 100%; border-radius: 2px; }
.gallery-video video { height: 100%; object-fit: cover; }

/* =========================================================================
   Inner page hero banner
   ========================================================================= */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8% 0;
  text-align: center;
}
/* Same Divi background_blend="overlay" treatment as the counters section —
   colour blended into the image, per-page alpha from the builder. */
.page-hero { background-blend-mode: overlay; }
.page-hero--about    { background-color: rgba(0, 0, 0, 0.52); }
.page-hero--services { background-color: rgba(0, 0, 0, 0.38); }
.page-hero--contact  { background-color: rgba(0, 0, 0, 0.48); }
.page-hero .row { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 30px; margin: 0; }
.page-hero--contact h1 { font-size: 50px; }

/* Breadcrumbs (SEO checklist item 12 / schema BreadcrumbList) */
.crumbs {
  position: relative; z-index: 1;
  margin: 12px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  font-size: 14px; color: rgba(255, 255, 255, 0.85);
}
.crumbs a { color: #fff; text-decoration: underline; }
.crumbs a:hover { color: var(--orange); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .7; }

.about-subtitle { font-weight: 600; color: var(--maroon); margin: -6px 0 14px; }

/* =========================================================================
   Image hover — gentle zoom
   ========================================================================= */
.img-hover { overflow: hidden; }
.img-hover img { transition: transform .35s ease-out; }
.img-hover:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .img-hover:hover img { transform: none; }
}

/* =========================================================================
   About — Vision / Mission cards
   ========================================================================= */
.vm-section {
  position: relative;
  background-color: rgba(0, 0, 0, 0.55);   /* Divi background_blend="overlay" */
  background-blend-mode: overlay;
}
.vm-section .row { position: relative; z-index: 1; }
.vm-card {
  background: rgba(148, 30, 60, 0.8);
  border-radius: 30px;
  padding: 20px;
  height: 100%;
  transition: background-color .3s ease;
}
.vm-card h2, .vm-card p { color: #fff; transition: color .3s ease; }
.vm-card h2 { font-size: var(--h4); }
.vm-card:hover { background: rgba(255, 255, 255, 0.67); }
.vm-card:hover h2, .vm-card:hover p { color: #000; }

/* =========================================================================
   Pooja Services page
   ========================================================================= */
.svc { padding-bottom: 20px; }
.svc--tinted {
  background-size: cover;
  background-position: center;
  position: relative;
  /* Divi: background_color="rgba(255,255,255,0.52)" background_blend="overlay" */
  background-color: rgba(255, 255, 255, 0.52);
  background-blend-mode: overlay;
}
.svc .row { position: relative; z-index: 1; }

.svc-main {
  background: var(--maroon-soft);
  padding: 0 60px 0 0;
  align-items: stretch;
}
.svc-main .c2_5 img { width: 100%; }
.svc h2 { font-size: 30px; }

.svc-points { margin-top: 0; }
.svc-points .col {
  padding: 10px;
  border: 1px dotted var(--maroon);
  transition: transform .3s ease;
  display: flex;
}
.svc-points .col:hover { transform: translateY(-3px); }
.svc-points p {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6em;
}
.svc-points .ic { color: var(--maroon); width: 18px; height: 18px; margin-top: .25em; }

/* =========================================================================
   Contact page
   ========================================================================= */
.contact-section { background: #f5f5f5; }
.contact-section .row { max-width: 1400px; }

.form-card {
  background: #f8f5f0;
  border-top: 3px solid var(--maroon);
  padding: 30px 20px 35px;
}
.form-card h2 { text-align: center; font-size: 30px; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 15px; margin-bottom: 6px; color: #333; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--maroon); }
.field .err { display: block; margin-top: 6px; font-size: 14px; color: #b3261e; }
.field--invalid input, .field--invalid textarea { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* reCAPTCHA's iframe widget has a fixed 304px width and won't reflow on its
   own — scale it down on narrow phones so the form-card never overflows. */
.field--captcha { overflow: hidden; }
.field--captcha .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 420px) {
  .field--captcha .g-recaptcha { transform: scale(0.86); }
  .field--captcha { height: 68px; }
}
@media (max-width: 340px) {
  .field--captcha .g-recaptcha { transform: scale(0.74); }
  .field--captcha { height: 58px; }
}

.form-note { font-size: 14px; margin-top: 14px; }
.alert { padding: 14px 16px; border-radius: 2px; margin-bottom: 20px; font-size: 16px; }
.alert--ok  { background: #e7f4ea; color: #16601f; border-left: 4px solid #2e7d32; }
.alert--err { background: #fdecea; color: #7f1d1d; border-left: 4px solid #b3261e; }

.contact-info h2 { font-size: 30px; }
.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  line-height: 1.5em;
}
.contact-line .ic { color: var(--maroon); width: 20px; height: 20px; margin-top: .3em; }
.contact-line a { color: #333; }
.contact-line a:hover { color: var(--maroon); }

.map-embed { line-height: 0; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* =========================================================================
   FAQ (accordion) — inherits the service-card visual language
   ========================================================================= */
.faq { max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; border-left: 3px solid var(--maroon); margin-bottom: 12px; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  min-height: 44px;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--maroon);
  text-align: left;
  cursor: pointer;
}
.faq-q::after {
  content: "";
  width: 10px; height: 10px; flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq-a { padding: 0 20px 18px; }
.faq-a[hidden] { display: none; }

/* Direct answer block (AEO) */
.direct-answer {
  background: #fff;
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7em;
}

/* =========================================================================
   Footer — Divi footer layout #35
   ========================================================================= */
/* Live site: background-color rgba(0,0,0,.53), background-blend-mode overlay,
   background-attachment SCROLL (the footer is not one of the `#bg-img`
   fixed-attachment sections). */
.site-footer {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-color: rgba(0, 0, 0, 0.53);
  background-blend-mode: overlay;
}
.site-footer .row { position: relative; z-index: 1; }
.site-footer h2 {
  /* Live site footer headings: 26px / line-height 26px, white */
  color: #fff;
  font-size: 26px;
  margin: 0;
}
.footer-top { padding: 60px 0 30px; }

.flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flinks a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.7em;
}
.flinks a:hover { color: var(--orange); }
.flinks .ic { color: var(--orange); width: 16px; height: 16px; }

.socials { display: flex; gap: 10px; margin-top: 15px; }
.socials a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 3px;
}
.socials a:hover { background: var(--orange); color: #fff; }
.socials .ic { width: 16px; height: 16px; }

.finfo { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.finfo .ic { color: var(--orange); width: 20px; height: 20px; margin-top: .3em; }
.finfo, .finfo p { color: rgba(255, 255, 255, 0.75); font-size: 15px; line-height: 1.5em; margin: 0; }
.finfo a { color: #fff; display: block; }
.finfo a:hover { color: var(--orange); }
.finfo--address p { color: #fff; }

.footer-map iframe { width: 300px; max-width: 100%; height: 260px; border: 0; }

.footer-bottom {
  position: relative;
  z-index: 1;
  background: var(--maroon);
  color: #fff;
  text-align: center;
  padding: 5px 16px;
  font-size: 14px;
}
.footer-bottom a { color: #fff; text-decoration: underline; }
.footer-bottom a:hover { color: var(--orange); }

/* =========================================================================
   Entrance animations — Divi animation_style="slide"/"fade"
   ========================================================================= */
.anim { opacity: 0; will-change: transform, opacity; }
.anim.is-in { animation: aFade 1s cubic-bezier(.77, 0, .175, 1) forwards; }
.anim--left.is-in  { animation-name: aSlideLeft; }
.anim--right.is-in { animation-name: aSlideRight; }
.anim--up.is-in    { animation-name: aSlideUp; }

@keyframes aFade { to { opacity: 1; } }
@keyframes aSlideLeft  { from { opacity: 0; transform: translateX(-10%); } to { opacity: 1; transform: none; } }
@keyframes aSlideRight { from { opacity: 0; transform: translateX(10%); }  to { opacity: 1; transform: none; } }
@keyframes aSlideUp    { from { opacity: 0; transform: translateY(10%); }  to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1 !important; animation: none !important; }
  .btn, .card, .svc-points .col, .nav .sub { transition: none !important; }
}

/* =========================================================================
   Blog — new section (SEO checklist item 10). Inherits the existing design
   language: same card treatment, same eyebrow/title rhythm, same buttons.
   ========================================================================= */
.row--narrow { max-width: 820px; }

.post-grid { margin-top: 30px; }

.post-card {
  background: #fff;
  border-top: 3px solid var(--maroon);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  padding: 0 0 24px;
}
.post-card .card-img { margin: 0 0 18px; }
.post-card h3 { margin: 0 20px 8px; font-size: var(--h5); }
.post-card h3 a { color: var(--heading-color); }
.post-card h3 a:hover { color: var(--maroon); }
.post-card p { margin: 0 20px 14px; }

.post-meta { color: #8a8a8a; font-size: 15px; }

.post-body > * { margin-bottom: 20px; }
.post-body h2 { font-size: var(--h3); margin-top: 34px; }
.post-body h3 { font-size: var(--h5); margin-top: 26px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body img { max-width: 100%; height: auto; }

/* =========================================================================
   Responsive — Divi breakpoints: 980px (tablet) and 767px (phone)
   ========================================================================= */

/* Divi: @media (min-width: 1625px) → content_width × 1.25 */
@media (min-width: 1625px) {
  .row     { padding: 32px 0; }
  .section { padding: 65px 0; }
  .hero .row, .row--flush { padding: 0; }
}

@media (max-width: 980px) {
  :root {
    --h1: 30px; --h2: 25.8px; --h3: 21.9px;
    --h4: 18px; --h5: 15.9px; --h6: 14.1px;
  }
  .section { padding: 50px 0; }
  .row { padding: 30px 0; }
  .hero .row, .row--flush { padding: 0; }

  /* Divi stacks every column at ≤980px … */
  .cols > .col { width: 100% !important; margin-right: 0 !important; margin-bottom: 30px; }
  .cols > .col:last-child { margin-bottom: 0; }

  /* … except 4-col and 5-col rows, which go two-up */
  .cols--4up > .col,
  .cols--5up > .col { width: 47.25% !important; margin-right: 5.5% !important; margin-bottom: 30px; }
  .cols--4up > .col:nth-child(2n),
  .cols--5up > .col:nth-child(2n) { margin-right: 0 !important; }

  /* Mobile navigation */
  .nav-toggle { display: block; }
  .header-bar { padding: 8px 0; min-height: 0; }
  /* The two-column desktop split collapses: logo left, burger right. */
  .header-main {
    flex: 1 1 auto;
    margin-right: 0;
    justify-content: space-between;
  }
  .logo { flex: 0 0 auto; margin-right: 0; }   /* drop the 371px desktop box */
  .logo img { width: 170px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid var(--maroon);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav > ul > li { padding: 0; }   /* desktop 11px gutter off in the drawer */
  .nav > ul > li { border-bottom: 1px solid #f0e6e9; }
  .nav > ul > li:last-child { border-bottom: 0; }
  .nav a { padding: 12px 24px; }
  .nav .has-sub { display: flex; align-items: center; justify-content: space-between; }
  .nav .has-sub > a { flex: 1; }
  /* Back to an in-flow button in the drawer (desktop absolutely positions it
     into the caret gutter). */
  .nav .has-sub > .sub-toggle {
    position: static;
    transform: none;
    padding: 12px 24px;
    min-width: 44px;
    min-height: 44px;
  }
  .nav .has-sub > .sub-toggle .ic { transition: transform .3s ease; }
  .nav .has-sub > .sub-toggle[aria-expanded="true"] .ic { transform: rotate(90deg); }
  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: 0;
    background: #fdf7f8;
    width: 100%;
    padding: 4px 0 8px;
  }
  .nav .sub.is-open { display: block; }
  .nav li:hover > .sub { display: none; }
  .nav li:hover > .sub.is-open { display: block; }
  .nav .sub a { padding: 10px 40px; }
  .header-cta { display: none; }

  /* Fixed backgrounds are unreliable on mobile browsers */
  .bg-fixed, .page-hero { background-attachment: scroll; }

  .svc-main { padding: 20px 30px; }
  .cards-row, .cards-row + .cards-row { margin-top: 0; }
  .card-img { margin-top: 10px; }
  .card { padding-top: 20px; }
  .counter .num { font-size: 56px; }
  .footer-map iframe { width: 100%; }
  .page-hero { padding: 60px 0; }
  .page-hero--contact h1 { font-size: 34px; }
  .lead { text-align: left; }
}

@media (max-width: 767px) {
  :root { --h1: 23px; --h2: 19.8px; --h3: 16.8px; --h4: 17px; --h5: 16px; --h6: 15px; }
  .section-title, .svc h2, .form-card h2, .contact-info h2 { font-size: 23px; }
  .page-hero h1, .page-hero--contact h1 { font-size: 26px; }
  .flist--2 { grid-template-columns: 1fr; }
  .card-img { margin-top: 0; }
  .counter .num { font-size: 46px; }
  .svc-main { padding: 20px 30px; }

  /* Site Health: 44px touch targets. Applied at mobile only so the compact
     footer link spacing of the original Divi layout is kept on desktop.
     Padding grows the hit area; font size and colour are unchanged. */
  .flinks { gap: 0; }
  .flinks a { min-height: 44px; padding: 8px 0; }
  .finfo a { min-height: 44px; display: flex; align-items: center; }
  .footer-bottom { padding: 12px 16px; }
  .footer-bottom a { display: inline-block; padding: 12px 4px; }
  .contact-line a { min-height: 44px; display: flex; align-items: center; }
  .crumbs a { display: inline-block; padding: 12px 0; }
}

/* Divi: at ≤479px the 1/4, 1/5 and 1/6 columns go full width */
@media (max-width: 479px) {
  .cols--4up > .col,
  .cols--5up > .col { width: 100% !important; margin-right: 0 !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .map-embed, .footer-map { display: none; }
  body { color: #000; }
}
