/* ============================================================
   SERRA SERVICES — SHARED STYLESHEET
   Extracted from index.html so every page (home, services,
   tenancy guide, FAQ, and future Django templates) shares one
   source of truth for colors, fonts, and components.

   Structure:
   1. Variables & Resets
   2. Buttons (shared component)
   3. Header / Nav
   4. Hero Section
   5. Services Intro & Highlight
   6. Service Cards Grid
   7. Contact Section & Form
   8. Footer
   9. Cookie Consent Banner
   10. Guide / Content Pages (placeholder — fill in as built)
   11. Placeholder / Maintenance Pages
   12. Mobile Responsiveness
   ============================================================ */

/* ------------------------------------------------------------
   1. Variables & Resets
   ------------------------------------------------------------ */
:root {
  --primary-navy: #110d59;
  --primary-coral: #df6e35;
  --bg-cream: #ffecc6;
  --text-dark: #1d1d1f;
  --text-muted: #515154;
  --border-light: #d2d2d7;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-stack); color: var(--text-dark); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ------------------------------------------------------------
   2. Buttons (shared component)
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.btn-outline-white { border: 2px solid white; color: white; background: transparent; }
.btn-outline-white:hover { background: white; color: var(--text-dark); }
.btn-dark { background: #222; color: white; }
.btn-dark:hover { background: #000; }
.btn-coral { background: var(--primary-coral); color: white; }
.btn-coral:hover { opacity: 0.9; }

/* ------------------------------------------------------------
   3. Header / Nav
   ------------------------------------------------------------ */
.promo-banner {
  background-color: var(--primary-navy);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: white;
  position: relative;
}
.logo img { height: 40px; }

.nav-dropdown-wrapper { position: relative; display: inline-block; }

.menu-trigger-btn {
  background-color: #f5f5f7;
  color: var(--text-dark);
  border: 1px solid #e5e5ea;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.menu-trigger-btn:hover,
.menu-trigger-btn:focus-visible {
  background-color: #e5e5ea;
  border-color: var(--primary-coral);
  outline: none;
}

.menu-chevron { font-size: 12px; transition: transform 0.3s ease; display: inline-block; }
.nav-dropdown-wrapper.active .menu-chevron { transform: rotate(180deg); }

.dropdown-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  min-width: 200px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5ea;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}
.nav-dropdown-wrapper.active .dropdown-menu-panel {
  display: flex;
  animation: menuFadeIn 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-menu-item {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.dropdown-menu-item:hover { background-color: #fafafa; color: var(--primary-coral); }
.dropdown-menu-item i { font-size: 16px; color: var(--text-muted); transition: color 0.2s ease; }
.dropdown-menu-item:hover i { color: var(--primary-coral); }

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   4. Hero Section
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: url('https://images.unsplash.com/photo-1554995207-c18c203602cb?q=80&w=2000&auto=format&fit=crop') center/cover;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(105deg, var(--primary-coral) 0%, #b84a22 40%, var(--primary-navy) 80%, transparent 100%);
  opacity: 0.95;
}
.hero-content { position: relative; color: white; max-width: 600px; z-index: 2; }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 15px; line-height: 1.1; }
.hero p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}

.apple-trustpilot-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.apple-trustpilot-link:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.02); }
.apple-trustpilot-link .stars { font-size: 14px; letter-spacing: 1px; margin-bottom: 3px; }
.apple-trustpilot-link .text { font-size: 13px; font-weight: 500; }
.apple-trustpilot-link strong { color: #00b67a; }

/* ------------------------------------------------------------
   5. Services Intro & Highlight
   ------------------------------------------------------------ */
.services-intro {
  background-color: var(--bg-cream);
  text-align: center;
  padding: 80px 5% 40px;
}
.services-intro h2 { font-size: 36px; margin-bottom: 15px; }
.services-intro p { max-width: 700px; margin: 0 auto; color: var(--text-muted); font-size: 17px; }

.service-highlight {
  background-color: var(--bg-cream);
  padding: 40px 5% 80px;
  display: flex;
  gap: 5%;
  align-items: center;
}
.highlight-img { flex: 1; border-radius: 16px; overflow: hidden; }
.highlight-img img { width: 100%; height: auto; }
.highlight-text { flex: 1; display: flex; flex-direction: column; gap: 30px; }
.text-block h3 { font-size: 20px; margin-bottom: 8px; }
.text-block p { color: var(--text-muted); font-size: 15px; }

/* ------------------------------------------------------------
   6. Service Cards Grid
   ------------------------------------------------------------ */
.service-cards-section { padding: 80px 5%; background: white; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card { display: flex; flex-direction: column; }
.card img { border-radius: 12px; height: 250px; object-fit: cover; margin-bottom: 20px; }
.card h4 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 15px; }
.card .btn { align-self: flex-start; }

/* ------------------------------------------------------------
   7. Contact Section & Form
   ------------------------------------------------------------ */
.contact-section {
  position: relative;
  padding: 100px 5%;
  text-align: center;
  color: white;
  background: url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?q=80&w=2000&auto=format&fit=crop') center/cover;
}
.contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.contact-content { position: relative; z-index: 2; }
.contact-content h2 { font-size: 36px; margin-bottom: 15px; }
.contact-content p { margin-bottom: 40px; font-size: 17px; }

.contact-form-card {
  background: white;
  color: var(--text-dark);
  max-width: 550px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.form-group input, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e1e1e6;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  background-color: #f9f9fb;
  transition: all 0.2s ease;
}
.form-group input:focus, .form-group select:focus {
  background-color: white;
  border-color: var(--primary-coral);
  box-shadow: 0 0 0 4px rgba(223, 110, 53, 0.15);
}
.contact-form-card .btn { width: 100%; margin-top: 10px; padding: 16px; border-radius: 10px; font-size: 16px; }

/* ------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------ */
.footer { background-color: var(--primary-navy); color: white; padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-col h3 { font-size: 24px; margin-bottom: 15px; }
.footer-col p { font-size: 14px; opacity: 0.8; margin-bottom: 20px; }

.social-icons { display: flex; gap: 20px; font-size: 22px; margin-top: 10px; }
.social-icons a { color: white; opacity: 0.7; transition: all 0.2s ease; display: inline-block; }
.social-icons a:hover { color: var(--primary-coral); opacity: 1; transform: translateY(-3px); }

.footer-col.contact-info {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-content: flex-start;
  padding-top: 5px;
}
.footer-col.contact-info a:hover { text-decoration: underline; }

.footer-bottom {
  text-align: left;
  font-size: 12px;
  opacity: 0.6;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ------------------------------------------------------------
   9. Cookie Consent Banner
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: white;
  color: var(--text-dark);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  border: 1px solid #e5e5ea;
  padding: 24px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-stack);
}
.cookie-banner h5 { font-size: 18px; font-weight: 700; color: var(--primary-navy); }
.cookie-banner p { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.cookie-banner a { color: var(--primary-coral); text-decoration: underline; }

.cookie-options {
  display: none;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #e5e5ea;
  padding-top: 12px;
}
.cookie-toggle-group { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.cookie-toggle-group span { font-weight: 400; color: var(--text-muted); display: block; font-size: 12px; }

.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e5e5ea; transition: .3s; border-radius: 22px;
}
.slider:before {
  position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
  background-color: white; transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-coral); }
input:checked + .slider:before { transform: translateX(16px); }
input:disabled + .slider { background-color: #d1d1d6; opacity: 0.6; cursor: not-allowed; }

.cookie-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cookie-actions .btn { font-size: 14px; padding: 10px 16px; border-radius: 8px; width: 100%; }
.cookie-actions-row { display: flex; gap: 8px; width: 100%; }

.cookie-revocation-badge {
  position: fixed; bottom: 24px; left: 24px;
  background: white; border: 1px solid #e5e5ea;
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 9998; color: var(--text-muted); transition: all 0.2s ease;
}
.cookie-revocation-badge:hover { color: var(--primary-coral); transform: scale(1.05); }

/* ------------------------------------------------------------
   10. Guide / Content Pages (placeholder)
   ------------------------------------------------------------ */
.guide-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 5%;
}
.guide-container header {
  text-align: center;
  margin-bottom: 50px;
}
.brand-badge {
  display: inline-block;
  background-color: var(--bg-cream);
  color: var(--primary-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.guide-container h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
}

/* ------------------------------------------------------------
   11. Placeholder / Maintenance Pages — REFINED APPLE LAYOUT
   ------------------------------------------------------------ */
body.placeholder-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 24px;
  background-color: #ffffff;
}
.placeholder-content { 
  max-width: 460px; 
  width: 100%; 
  text-align: center; 
}
/* Fixed block-image layout centering bug */
.placeholder-content .logo-container img { 
  max-width: 150px; 
  margin: 0 auto 32px auto; 
}
.placeholder-content h1 { 
  font-size: 32px; 
  font-weight: 700; 
  letter-spacing: -0.015em;
  margin-bottom: 16px; 
  color: var(--text-dark);
}
.placeholder-content .intro-text { 
  font-size: 17px; 
  line-height: 1.5;
  color: var(--text-muted); 
  margin-bottom: 32px; 
}
.placeholder-content .btn-coral {
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(223, 110, 53, 0.2);
  margin-bottom: 48px;
  display: inline-block;
}
.placeholder-content .btn-coral:hover {
  transform: scale(1.02);
  opacity: 1;
  box-shadow: 0 6px 16px rgba(223, 110, 53, 0.3);
}
.trustpilot-card-wrapper { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  width: 100%; 
}
.trustpilot-badge {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.trustpilot-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: #c7c7cc;
}

/* ------------------------------------------------------------
   12. Mobile Responsiveness
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .service-highlight { flex-direction: column; padding-top: 60px; }
  .highlight-img { margin-bottom: 35px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .cookie-banner { bottom: 0; right: 0; left: 0; max-width: 100%; border-radius: 16px 16px 0 0; }
  .guide-container { padding: 40px 5%; }
}
