/* ============================================================
   MY BULGARIA PROPERTY — global.css
   Shared styles: variables, reset, typography, nav, footer,
   section primitives, buttons, form elements, mobile breakpoints
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --charcoal:      #1E1E1E;
  --charcoal-dark: #141414;
  --amber:         #F2C94C;
  --sage:          #B8CECA;
  --sage-dark:     #8AACAA;
  --sage-light:    #D4E3E1;
  --cream:         #EEF0E5;
  --warm-white:    #FAFAF8;
  --white:         #FFFFFF;
  --rose:          #A8324A;
  --rose-dark:     #7E2536;
  --mid:           #565449;
  --body-text:     #4A4A4A;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: 100px 56px;
  --section-pad-mobile: 64px 20px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

/* ── BASE ── */
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--warm-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex; gap: 36px;
  list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

.nav-cta {
  background: var(--amber);
  color: var(--charcoal) !important;
  padding: 10px 22px; border-radius: 40px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.35);
  padding: 64px 56px 0;
  font-size: 0.78rem; font-weight: 300;
}

.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col {}

.footer-col--brand {}

.footer-logo {
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* Lighten slightly so the dark green reads on charcoal background */
  filter: brightness(1.15);
}
.footer-logo span { color: var(--amber); }

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col-title {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-col--contact {}

.footer-contact-item {
  margin-bottom: 12px;
}
.footer-contact-item strong {
  display: block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.footer-contact-link {
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--amber); }

.footer-response {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
}

.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}

/* ── SECTION PRIMITIVES ── */
.section { padding: var(--section-pad); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block; width: 20px; height: 1.5px;
  background: var(--amber); flex-shrink: 0;
}

/* Dark section overrides */
.section--dark .section-label { color: rgba(184,206,202,0.7); }
.section--dark .section-label::before { background: var(--sage); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600; line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 0.95rem; color: var(--body-text);
  max-width: 560px; line-height: 1.8;
  margin-bottom: 56px; font-weight: 300;
}
.section-sub--light { color: rgba(255,255,255,0.5); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--amber); color: var(--charcoal);
  padding: 14px 30px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; border-radius: 40px;
  transition: opacity 0.2s; display: inline-block;
  font-family: var(--font-sans);
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 14px 30px; font-size: 0.85rem;
  font-weight: 400; text-decoration: none;
  border-radius: 40px; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-sans);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-dark {
  background: var(--charcoal); color: var(--white);
  padding: 14px 30px; font-size: 0.85rem;
  font-weight: 500; text-decoration: none;
  border-radius: 40px; transition: opacity 0.2s;
  display: inline-block; font-family: var(--font-sans);
}
.btn-dark:hover { opacity: 0.82; }

.btn-ghost {
  border: 1.5px solid rgba(30,30,30,0.25);
  color: var(--charcoal);
  padding: 14px 30px; font-size: 0.85rem;
  font-weight: 400; text-decoration: none;
  border-radius: 40px; display: inline-block;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}
.btn-ghost:hover { border-color: var(--charcoal); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--charcoal-dark);
  padding: 20px 56px;
  display: flex; align-items: center;
  justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-item {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.trust-item::before {
  content: ''; width: 20px; height: 1.5px;
  background: var(--sage); flex-shrink: 0;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--charcoal);
  padding: 140px 56px 80px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(184,206,202,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-width); margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
  font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 1.5px; background: var(--amber);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600; line-height: 1.1;
  color: var(--white); letter-spacing: -0.02em;
  max-width: 720px; margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: var(--amber); font-weight: 400; }
.page-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  max-width: 560px; line-height: 1.8; font-weight: 300;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid rgba(184,206,202,0.5);
  border-radius: 4px;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(138,172,170,0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(86,84,73,0.4); }

.form-textarea { resize: vertical; min-height: 140px; line-height: 1.7; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23565449' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px; cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-error {
  font-size: 0.75rem; color: #C0392B;
  margin-top: 6px; font-weight: 400;
}

.form-success {
  background: rgba(184,206,202,0.2);
  border: 1px solid var(--sage);
  border-radius: 4px;
  padding: 20px 24px;
  font-size: 0.9rem; color: var(--charcoal);
  line-height: 1.6;
}

/* ── CTA SECTION ── */
.cta-section { background: var(--amber); padding: var(--section-pad); text-align: center; }
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 600; color: var(--charcoal);
  margin-bottom: 20px; line-height: 1.15; letter-spacing: -0.02em;
}
.cta-section p {
  font-size: 0.95rem; color: rgba(30,30,30,0.65);
  margin-bottom: 44px; line-height: 1.8;
  max-width: 600px; margin-left: auto;
  margin-right: auto; font-weight: 300;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── MOBILE BREAKPOINTS ── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 20px; height: 64px; }
  .nav-logo-img { height: 48px; }
  .nav-links {
    display: none; position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column; gap: 0;
    padding: 0; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a { display: block; padding: 16px 24px; font-size: 0.9rem; }
  .nav-links .nav-cta { margin: 16px 24px; display: inline-block; }
  .nav-hamburger { display: flex; }

  /* Footer */
  footer { padding: 48px 20px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-links { flex-direction: column; gap: 8px; }

  /* Sections */
  .section { padding: var(--section-pad-mobile); }
  .section-sub { margin-bottom: 36px; font-size: 1rem; }

  /* Mobile font-size enforcement — minimum 16px body */
  body { font-size: 16px; }
  .section-label { font-size: 0.75rem; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .section-sub { font-size: 1rem; }
  .page-hero-sub { font-size: 1rem; }
  .page-hero-eyebrow { font-size: 0.8rem; }

  /* Bump small headings that sit above body copy */
  .trust-card h3,
  .step-card h3,
  .service-card h3,
  .different-card h3,
  .pillar-content h3,
  .cred-title,
  .process-step h3,
  .contact-method-title,
  .contact-expect-title,
  .area-name,
  .area-detail-name,
  .portfolio-group-title,
  .maint-card h3,
  .plan-name,
  .sales-card h3,
  .package-name,
  .repair-price-label,
  .review-info-card h3,
  .team-name,
  .uk-locations-title,
  .footer-col-title {
    font-size: 1.15rem;
  }

  /* Ensure all body/detail text is at least 16px */
  .trust-card p,
  .step-card p,
  .service-card p,
  .different-card p,
  .pillar-content p,
  .cred-body,
  .process-step p,
  .story-body,
  .solution-text,
  .service-detail-body,
  .service-includes li,
  .maint-card p,
  .plan-desc,
  .plan-includes li,
  .plan-visits,
  .sales-card p,
  .contact-method-detail,
  .contact-expect-list li,
  .problem-list li,
  .body-text,
  .area-detail-body,
  .area-detail-cta,
  .area-detail-services span,
  .area-detail-type,
  .package-for,
  .package-includes li,
  .package-cta,
  .plan-cta,
  .repair-price-note,
  .why-item,
  .review-permission,
  .review-info-card p,
  .review-steps li,
  .team-bio,
  .team-role,
  .uk-body,
  .uk-location-detail,
  .uk-location-name,
  .footer-links a,
  .footer-contact-link,
  .footer-tagline,
  .response-item,
  .response-text,
  .service-cta-link,
  .hero-quote,
  .mission-statement,
  .stat-label,
  .about-stat-label,
  .maint-pricing-text,
  .form-input,
  .form-textarea,
  .form-select,
  .cta-section p,
  .footer-response span {
    font-size: 1rem;
  }

  /* Trust bar items — bump from 0.68rem */
  .trust-item { font-size: 0.82rem; gap: 8px; }
  .trust-item::before { width: 14px; }

  /* Buttons minimum size */
  .btn-primary, .btn-outline, .btn-dark, .btn-ghost { font-size: 1rem; padding: 16px 28px; }

  /* Trust bar */
  .trust-bar { padding: 20px; gap: 16px; }

  /* Page hero */
  .page-hero { padding: 110px 20px 60px; }

  /* CTA */
  .cta-section { padding: var(--section-pad-mobile); }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-dark, .btn-ghost { width: 100%; max-width: 320px; text-align: center; }

  /* Form */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* ── UNIVERSAL MINIMUM FONT SIZE ──
     Catches any remaining 0.85rem / 0.88rem / 0.9rem etc.
     that aren't explicitly listed above.
     Excludes eyebrow/label text which is intentionally smaller. */
  p, li, a, span, td, th, blockquote, textarea, input, select, button, label {
    font-size: max(1rem, 0.85rem);
  }

  /* Re-allow intentionally small text like eyebrows and badges */
  .section-label,
  .section-label *,
  .page-hero-eyebrow,
  .plan-badge,
  .area-detail-type,
  .team-role,
  .stat-label,
  .footer-col-title,
  .footer-copy,
  .footer-response span,
  .nav-links a,
  .response-bar .response-item {
    font-size: unset;
  }
}

@media (max-width: 480px) {
  .trust-bar { flex-direction: column; align-items: flex-start; padding: 20px; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
}
