/* ==========================================================================
   Falmouth House Clearance - Clean Stylesheet
   ========================================================================== */

:root {
  --primary-color: #1b4332;
  --primary-hover: #2d6a4f;
  --secondary-color: #c2410c;
  --secondary-hover: #9a3412;
  --accent-color: #f4a261;
  
  --cornish-sea-blue: #005f73;
  --cornish-sea-hover: #0a9396;
  
  --text-main: #2b2d42;
  --text-muted: #5c677d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --line-height-base: 1.6;

  --container-width: 1200px;
  --border-radius: 8px;
  --transition-fast: 0.2s ease-in-out;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--text-main);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.hp-field { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background-color: var(--cornish-sea-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.site-logo span {
  font-size: 0.75rem;
  font-weight: 400;
  color: #d8f3dc;
}

.main-nav, .main-nav ul, .main-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.main-nav a:hover { color: #94d2bd; }

.nav-dropdown {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}

.nav-dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  min-width: 180px;
  border-radius: var(--border-radius);
  flex-direction: column !important;
  gap: 0 !important;
  z-index: 1010;
}

.nav-dropdown:hover .nav-dropdown-menu { display: flex !important; }

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--text-main);
}

.nav-dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--cornish-sea-blue);
}

.nav-call {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--transition-fast);
}

.nav-call:hover { background: rgba(255, 255, 255, 0.25); }

.nav-call img, .nav-call svg {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(27, 67, 50, 0.45), rgba(27, 67, 50, 0.45)), url('/assets/images/hero.webp');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4rem 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.lead {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 1.75rem auto;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- BREADCRUMBS --- */
.breadcrumb-container {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb, .breadcrumb ol, .breadcrumb ul {
  list-style: none;
  padding: 0.6rem 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--cornish-sea-blue);
  text-decoration: none;
}

/* --- NEW CLEAN MAP SECTION --- */
.map-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
  text-align: center;
}

.map-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.map-section .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.map-frame-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-frame-wrapper iframe {
  width: 100% !important;
  height: 450px !important;
  border: 0 !important;
  display: block;
}

/* --- BUTTONS & GENERAL --- */
h2 {
  font-size: 1.875rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

p { margin-bottom: 1rem; }

.section-alt {
  background-color: var(--bg-light);
  padding: 3.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.btn-primary:hover { background-color: var(--secondary-hover); }

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.grid-2, .grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Forms */
.quote-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 2rem auto 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.quote-card input, .quote-card textarea, .quote-card select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Final CTA & Footer */
.final-cta {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.25rem;
}

.final-cta h2 { color: #ffffff; }

.site-footer {
  background-color: #122d22;
  color: #ffffff;
  padding: 3rem 0 1.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid a { color: #d0d0d0; text-decoration: none; }
.footer-grid a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #b0b0b0;
}

@media (min-width: 768px) {
  .hero { padding: 6rem 0; }
  .hero h1 { font-size: 3rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Ensure footer dark background & high contrast text */
.site-footer {
  background-color: #122d22 !important;
  color: #ffffff !important;
  padding: 3rem 0 1.5rem 0;
  display: block;
  clear: both;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer span,
.site-footer div {
  color: #ffffff !important;
}

.site-footer a {
  color: #d0d0d0 !important;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff !important;
}

/* Full-width Map Styling */
.map-section {
  padding: 3rem 0;
  background-color: #ffffff;
}

.map-frame-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-frame-wrapper iframe {
  width: 100% !important;
  height: 450px !important;
  border: 0 !important;
  display: block !important;
}

/* ==========================================================================
   Quote Card High-Contrast Visibility Overrides
   ========================================================================== */

.quote-card {
  background-color: #ffffff !important;
  color: #2b2d42 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.quote-card h2,
.quote-card h3,
.quote-card label,
.quote-card p,
.quote-card span {
  color: #1b4332 !important;
  text-shadow: none !important;
}

.quote-card label {
  display: block !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.35rem !important;
  color: #1b4332 !important;
}

.quote-card input[type="text"],
.quote-card input[type="tel"],
.quote-card input[type="email"],
.quote-card textarea,
.quote-card select {
  background-color: #ffffff !important;
  color: #2b2d42 !important;
  border: 1px solid #9ca3af !important;
  border-radius: 6px !important;
  padding: 0.75rem 0.9rem !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.quote-card input::placeholder,
.quote-card textarea::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.quote-card input:focus,
.quote-card textarea:focus {
  outline: none !important;
  border-color: #005f73 !important;
  box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.2) !important;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 30px auto;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: block;
}

.gallery-caption {
  margin-top: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .gallery-grid {
    gap: 15px;
  }
  .gallery-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 10px;
  }
  .gallery-caption {
    font-size: 0.8rem;
  }
}

/* Footer column headings: h3 for correct heading order, sized to match the former h4 */
.site-footer h3 {
  font-size: 1rem;
}


/* Hero subtitle contrast badge (canonical) */
.hero-subtitle-badge {
  display: inline-block;
  background-color: #ffffff;
  color: #1b4332;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0,0,0,0.08);
}
