/* Easy House Finder — Static Site Styles */

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

:root {
  --color-primary: #314153;
  --color-accent: #5d738f;
  --color-accent-dark: #4a6278;
  --color-brand: #b0c4de;
  --color-light: #f1f4f9;
  --color-white: #ffffff;
  --color-dark: #202b38;
  --color-gray: #6b7280;
  --color-text: #314153;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--color-text); background: var(--color-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

/* --- Header --- */
.site-header { background: var(--color-white); box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 48px; width: auto; }
.logo-text { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--color-primary); }
.nav-links { display: flex; list-style: none; gap: 24px; align-items: center; }
.nav-links a { font-family: var(--font-heading); font-weight: 500; font-size: 15px; color: var(--color-primary); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color var(--transition); }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--color-brand); color: var(--color-accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: var(--color-primary); border-radius: 2px; transition: var(--transition); }

/* --- Hero --- */
.hero { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(32,43,56,0.68); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 60px 24px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.hero-content .tagline { font-size: 1.2rem; opacity: 0.95; }

/* --- Services / Content Cards --- */
.services { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px; }
.section-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; text-align: center; color: var(--color-primary); margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { position: relative; border-radius: 12px; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.18); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,43,56,0.78) 0%, rgba(32,43,56,0.18) 60%, transparent 100%); z-index: 1; }
.service-card .card-content { position: relative; z-index: 2; padding: 28px 24px; color: var(--color-white); width: 100%; }
.service-card h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; line-height: 1.5; opacity: 0.92; }

/* --- Blog / News --- */
.blog-list { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 60px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card { border-radius: 12px; overflow: hidden; background: var(--color-white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 0.82rem; color: var(--color-gray); margin-bottom: 6px; }
.blog-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--color-primary); margin-bottom: 8px; }
.blog-card p { font-size: 0.92rem; color: var(--color-gray); line-height: 1.5; }

/* Blog placeholder */
.blog-empty { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; text-align: center; }
.blog-empty h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--color-primary); margin-bottom: 16px; }
.blog-empty p { color: var(--color-gray); font-size: 1.05rem; }

/* --- Rates Page --- */
.rates-section { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 60px; }
.rates-section h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--color-primary); margin-bottom: 16px; }
.rates-section > p { margin-bottom: 28px; line-height: 1.7; }
.rates-widgets { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 20px 0; }
.rates-widget-wrap { flex-shrink: 0; }
.rates-source { margin-top: 24px; font-size: 0.88rem; color: var(--color-gray); }

/* --- Contact Page --- */
.contact-section { max-width: 700px; margin: 0 auto; padding: 60px 24px; }
.contact-section h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--color-primary); margin-bottom: 24px; }
.contact-info { margin-bottom: 32px; line-height: 1.8; }
.contact-info a { color: var(--color-accent); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-heading); font-weight: 500; font-size: 0.92rem; color: var(--color-primary); }
.form-group input, .form-group textarea { padding: 12px 14px; border: 1.5px solid #d0d9e4; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-brand); }
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit { align-self: flex-start; padding: 12px 28px; background: var(--color-accent); color: var(--color-white); border: none; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background var(--transition); }
.btn-submit:hover { background: var(--color-accent-dark); }

/* --- Content Pages (Privacy) --- */
.content-page { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.content-page h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--color-primary); margin-bottom: 24px; }
.content-page h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--color-primary); margin: 24px 0 8px; }
.content-page p { margin-bottom: 16px; line-height: 1.7; }
.content-page ul { margin: 0 0 16px 24px; }
.content-page li { margin-bottom: 6px; }

/* --- Footer --- */
.site-footer { background: var(--color-brand); color: var(--color-dark); padding: 32px 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; border-top: 1px solid #999; padding-top: 24px; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgb(22,22,22); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: rgb(64,64,64); }
.footer-copy { font-size: 0.82rem; color: rgb(39,41,44); text-align: center; }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-primary); color: rgba(255,255,255,0.9); padding: 18px 24px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; z-index: 200; font-size: 0.9rem; box-shadow: 0 -2px 12px rgba(0,0,0,0.2); }
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; max-width: 600px; }
.cookie-btn { padding: 8px 18px; border: none; border-radius: 6px; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background var(--transition); }
.cookie-accept { background: var(--color-accent); color: var(--color-white); }
.cookie-accept:hover { background: var(--color-accent-dark); }
.cookie-decline { background: transparent; color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.3); }
.cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: var(--color-white); }


/* --- Responsive --- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); flex-direction: column; padding: 20px 24px; gap: 14px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { min-height: 300px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content { padding: 40px 16px; }
  .footer-inner { flex-direction: column; }
  .cookie-banner { flex-direction: column; text-align: center; }
}
