/* THEME VARIABLES */
:root {
  --bg: #f6f7f5;
  --fg: #1f2933;
  --accent: #3c7c73;
  --accent-soft: #e0f0ec;
  --white: #ffffff;
  --border-soft: #d9e2ec;
    --vt-spruce: #2F5F4F;
  --vt-gold: #C4A568;
  --vt-light: #F8FAF7;
  --vt-stone: #2B2F2D;
  --vt-lichen: #6B7C74;
}

/* RESET / BASE */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

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

/* LAYOUT */

header {
  background: var(--white);
  border-bottom: 1px solid #d9e2ec;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

main {
  padding: 0;
}

/* NAV */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.05em;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(60, 124, 115, 0.4);
}

.btn-primary:hover {
  background: #325f59;
  border-color: #325f59;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

/* HERO + VERMONT OUTLINE + TABS */

.hero {
  position: relative;
  background: url("img/green-vermont-home.jpg") center center / cover no-repeat;
  background-attachment: scroll;
  min-height: 80vh;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* dark overlay so light text is readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
  padding: 0;
}

.hero-content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-heading {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  color: #f9fafb;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  color: #e5e7eb;
}

/* LOGO BLOCK — mobile default */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  z-index: 3;
}

.hero-brand-logo {
  width: 100px;     /* updated size */
  height: auto;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f9fafb;
  line-height: 1.1;
}

/* DESKTOP ONLY — move logo to upper right corner */
@media (min-width: 900px) {
  .hero {
    position: relative;
  }

  .hero-brand {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    margin: 0;
  }
}

/* Vermont outline icon */
.vt-outline {
  width: 70px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Market snapshot text */
.market-snapshot {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 1.25rem;
}
.market-snapshot p {
  margin: 0 0 0.25rem 0;
}

/* Right-hand column block (can be left empty or used later) */
.hero-image {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  background-color: rgba(15, 23, 42, 0.25);
  min-height: 260px;
}

/* Tabs (card-file style) */

.cta-tabs {
  display: flex;
  gap: 0;
  margin-bottom: -1px; /* pulls tabs down to sit on top of card */
  position: relative;
  z-index: 2;
}

.tab-button {
  flex: 1;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border-soft);
  border-bottom: none;               /* tabs sit flush on card */
  background: #f4f8f7;               /* soft green/grey tab */
  color: #2f4e49;                    /* readable text */
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px 10px 0 0;      /* tab shape */
  box-shadow: none;                  /* remove the floating look */
}

.tab-button.active {
  background: #ffffff;               /* white blends into the card */
  color: #1f3733;                    /* stays visible on white */
  box-shadow: none;                  /* no hover/floating shadows */
  border-bottom: none;
}

/* Panel container under tabs */

.tab-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);

  /* Only round the bottom corners */
  border-radius: 0 0 12px 12px;

  padding: 1.25rem 1.5rem;
  position: relative;
  z-index: 1;
}


/* Tab panels */

.tab-panel {
  display: none;
  font-size: 0.95rem;
  color: var(--fg);
}

/* Only one shows at a time */

.tab-panel.active {
  display: block;
}

.tab-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}


/* Hero CTA button row */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* SECTIONS / CARDS */

.section {
  padding: 2rem 0;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 3.5rem 1.25rem 2.75rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .hero-image {
    display: none;                    /* drop right column on small screens */
  }
}

@media (max-width: 800px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-heading {
    font-size: 1.9rem;
  }

  .tabs {
    width: 100%;
  }

  .tab-button {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Testimonials Section */
.testimonials {
  background: transparent;
  color: var(--fg);
  border-radius: 0;
}

.testimonials-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--fg);
}

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

.testimonial-card {
  padding: 1.75rem;
  border-left: 6px solid var(--accent);
  /* card background + shadow already come from .card */
}

.testimonial-stars {
  color: #FFD700;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* CONTACT BUTTON VISIBILITY */

/* Baseline: hide both special contact buttons */
.cta-footer-btn.mobile-only,
.cta-footer-btn.desktop-only {
  display: none;
}

/* Mobile: show Text button, keep Email hidden */
@media (max-width: 700px) {
  .cta-footer-btn.mobile-only {
    display: flex;
  }
}

/* Desktop: show Email button, keep Text hidden */
@media (min-width: 701px) {
  .cta-footer-btn.desktop-only {
    display: flex;
  }
}

.desktop-only {
  display: none;
}

@media (min-width: 701px) {
  .desktop-only {
    display: block;
  }
}

/* Meet Bruce Styles */
/* Meet Bruce Split Card */
.meet-bruce-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: center;
}

.meet-bruce-text {
  text-align: left;
}

.meet-bruce-photo-wrap {
  text-align: right;
}

.meet-bruce-photo {
  max-width: 240px;
  height: auto;
}
@media (max-width: 700px) {
  .meet-bruce-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .meet-bruce-photo-wrap {
    text-align: center;
    margin-top: 1rem;
  }

  .meet-bruce-text {
    text-align: center;
  }

  .meet-bruce-photo {
    max-width: 200px;
  }
}
@media (max-width: 700px) {
  .meet-bruce-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* FORCE IMAGE ABOVE TEXT ON MOBILE */
  .meet-bruce-photo-wrap {
    order: -1;
    text-align: center;
    margin-bottom: 1rem;
  }

  .meet-bruce-text {
    text-align: center;
  }

  .meet-bruce-photo {
    max-width: 200px;
  }
}
@media (max-width: 700px) {
  .meet-bruce-photo-wrap {
    order: -1;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;   /* centers horizontally */
    width: 100%;
  }
}


/* CTA Footer — Hero Style with Luxe Buttons */
footer {
  padding: 0;
}
footer > *:first-child {
  margin-top: 0 !important;
}
.cta-footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

.cta-footer-label {
  font-weight: 700;
  font-size: 1.05rem;
}

.cta-footer-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}
.cta-footer {
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, #295046, var(--accent));
  color: #ffffff;
  text-align: center;
  margin-top: 3rem;
  overflow: hidden;
}

/* Optional background image – controlled by class */
.cta-footer.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/vermont_cta_bg.jpg") center center / cover no-repeat;
  opacity: 0.28;
}

.cta-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 55%);
  mix-blend-mode: screen;
}

.cta-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.cta-footer-icon {
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-footer-heading {
  font-size: 2.1rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.cta-footer-tagline {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
}

.cta-footer-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* Luxe, high-contrast buttons */
.cta-footer-btn {
  min-width: 210px;
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Main call button – white, heavy shadow, very clickable */
.cta-footer-btn-main {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.cta-footer-btn-main:hover {
  background: #f3faf7;
}

/* Ghost buttons – translucent but still clear */
.cta-footer-btn.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.cta-footer-btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}
/* Ghost button for dark backgrounds */
.btn-ghost-dark {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85); /* strong white outline */
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

/* Hover */
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);       /* soft white mist overlay */
  border-color: #ffffff;                       /* bright white border */
  color: #ffffff;
}

/* High-contrast accent button for the CTA footer */
.cta-footer-btn-pop {
  background: var(--white) !important;
  color: var(--accent) !important;
  border-color: var(--white) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.cta-footer-btn-pop:hover {
  background: #f2fdf9 !important;
  color: var(--accent) !important;
}


/* Legal line */
.cta-footer-legal {
  margin-top: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.2rem;
}

/* Mobile */
@media (max-width: 700px) {
  .cta-footer {
    padding: 3rem 1.25rem 2.25rem;
  }

  .cta-footer-btn {
    width: 100%;
    min-width: 0;
  }

  .cta-footer-heading {
    font-size: 1.9rem;
  }
}

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

/* Section subtitle under "Get In Touch" */
.section-sub {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Contact Cards Grid */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Card Styling */
.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.contact-large {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* Email link inside card (no underline, theme color) */
.contact-card a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.contact-card a:hover {
  opacity: 0.75;
}

/* Contact Form Structure */
.contact-form {
  margin-top: 2rem;
  max-width: 600px;
}

.contact-form .form-row {
  margin-bottom: 1.25rem;
}

/* Labels */
.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #444;
}

/* Inputs + Textareas */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #ffffff;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(60, 124, 115, 0.15);
}

/* Submit Button */
.contact-form button {
  margin-top: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
}

/* Blog Card Link ("Read more") */
.blog-card a {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.blog-card a:hover {
  color: #295046;       /* slightly darker version of your accent */
  opacity: 0.85;
}

/* ===========================
   BLOG / ARTICLE + PAGE INTRO
   =========================== */
/* ===========================
   TEXTURED TEXT SYSTEM
   =========================== */

/* Base Page Intro */
.page-intro {
  position: relative;
  padding: 1.75rem 1.2rem;
  overflow: hidden;
}

/* No overlay panels anymore */
.page-intro::before,
.page-intro::after {
  content: none;
}

/* TEXTURED HEADING */
.page-intro h1 {
  background: linear-gradient(
    135deg,
    #4a5f4e 0%,     /* bright moss */
    #7fa78f 35%,    /* lichen-green glow */
    #3f7bb5 75%,    /* bright lake blue */
    #1f4f7b 100%    /* deeper anchoring blue */
  );
  
  background-size: 200% 200%;
  
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  font-weight: 800;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
}

/* Mobile layout */
@media (max-width: 700px) {
  .page-intro {
    text-align: center;
    padding: 4rem 1.25rem 3rem;
  }

  .page-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}
.page-intro .page-subtitle {
  background: linear-gradient(
    135deg,
    #1a1a1a 0%,
    #2f5f4f 40%,
    #264f7a 100%
  );
  background-size: 200% 200%;
  
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  font-weight: 600;
}

/* Main article body */
.blog-article {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

.blog-article p {
  margin: 0 0 1rem;
}

.blog-article h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.4rem;
}

.blog-article h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.blog-article ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

/* Legal note callout */
.legal-note {
  background: #f9fafb;
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Generic info grid */
.info-section {
  margin: 2.5rem 0 0;
}

.centered-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  font-size: 0.95rem;
}

.info-card h3 {
  margin-top: 0;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .blog-article {
    margin-bottom: 2.5rem;
  }
}

/* Mobile layout for page intro */
@media (max-width: 700px) {
  .page-intro {
    text-align: center;
    padding: 3rem 1.25rem 2.5rem;
  }

  .page-intro::after {
    margin-left: auto;
    margin-right: auto;
  }

  .page-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ============================================
   BLOG LISTING – IMAGE LEFT, TEXT RIGHT
   ============================================ */

/* Grid contains cards stacked vertically */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card shell */
.blog-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #d9e2ec;
  padding: 1.25rem 1.5rem;
}

/* Inner layout: image left, text right */
.blog-card-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Thumbnail block (left) */
.blog-card-thumb {
  flex: 0 0 180px;       /* fixed width */
  max-width: 180px;
  height: 120px;         /* horizontal thumbnail shape */
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* clean crop */
  display: block;
}

/* Body (right side) */
.blog-card-body {
  flex: 1;
}

.blog-card h3 {
  margin: 0 0 0.4rem;
}

.blog-card-date {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 0 0.75rem;
}

/* Read More link spacing */
.blog-card-link {
  display: inline-block;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;  /* extra breathing room */
  font-weight: 600;
  text-decoration: none;
}

/* ============================
   MOBILE LAYOUT (STACKED)
   ============================ */
@media (max-width: 700px) {
  .blog-card-inner {
    flex-direction: column;
  }

  .blog-card-thumb {
    width: 100%;
    max-width: 100%;
    height: 180px;      /* taller image for vertical stacking */
  }
}
