/* ═══════════════════════════════════════════════
   Turtle Patches — Custom Quote Page
   Design: forest-green & warm-ivory, clean modern
═══════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2d6a4f;
  --green-dark:   #1b4332;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --ivory:        #faf9f6;
  --ivory-mid:    #f2efea;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --border:       #e2ddd8;
  --white:        #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       10px;
  --radius-lg:    16px;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: inline-block; vertical-align: middle; }
ul { list-style: none; }

/* ── Utilities ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: #00A651;
  color: var(--white);
  border-color: white;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green-pale); }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Top Bar ─────────────────────────────────── */
.topbar {
  background: #D54E4A;
  color: rgba(255,255,255,.88);
  font-size: 12.5px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-guarantee { font-weight: 500; }
.topbar-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contacts a {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.88);
  transition: color .15s;
}
.topbar-contacts a:hover { color: #fff; }
.topbar-contacts svg { width: 13px; height: 13px; }

/* ── Header ──────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon { font-size: 28px; }
.logo-text { font-size: 20px; font-weight: 300; color: var(--text); }
.logo-text strong { font-weight: 700; color: var(--green); }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav > a,
.main-nav > .nav-dropdown > a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
}
.main-nav > a:hover { background: var(--ivory-mid); color: var(--green); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown:hover > a { background: var(--ivory-mid); color: var(--green); }
.caret { font-size: 11px; margin-left: 2px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--text);
  transition: background .12s, color .12s;
}
.dropdown-menu a:hover { background: var(--green-pale); color: var(--green-dark); }

.header-cta { display: flex; gap: 10px; flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
      background: linear-gradient(135deg, #d54e4a 0%, #8e211d 100%);
  color: var(--white);
  padding: 72px 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 540px;
  flex: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero-title em {
  font-style: italic;
  color: #95d5b2;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.7;
}
.hero-scroll-btn { font-size: 15px; }

/* Hero patch visual */
.hero-img-col { position: relative; flex-shrink: 0; }
.hero-patch-visual { position: relative; width: 240px; height: 240px; }
.patch-badge-large {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.patch-icon { font-size: 52px; }
.patch-label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); text-align: center; line-height: 1.3; }

.floating-tag {
  position: absolute;
  background: var(--white);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.tag-1 { top: 8px;  right: 0; animation-delay: 0s; }
.tag-2 { bottom: 40px; left: 0; animation-delay: .8s; }
.tag-3 { bottom: 10px; right: 8px; animation-delay: 1.6s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Main Content Grid ────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}

/* Section heading */
.section-heading {
  font-family: sans-serif;
  font-size: 26px;
  color: var(--green-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

/* ── FAQ ─────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--green-light); }

.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--green-dark); }

.faq-body {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 14px;
}
.faq-body strong { color: var(--text); }

/* Sidebar promo */
.sidebar-promo {
  margin-top: 32px;
  background: linear-gradient(135deg, #00a651 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.promo-icon { font-size: 36px; margin-bottom: 12px; }
.sidebar-promo h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.sidebar-promo p { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.6; }
.sidebar-promo strong { color: #fff; }

/* ── Form Card ───────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-card-header {
      background: linear-gradient(135deg, #00a651 0%, var(--green) 100%);
  color: var(--white);
  padding: 28px 32px;
}
.form-card-header h2 {
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-card-header p { font-size: 14px; color: rgba(255,255,255,.8); }

#quoteForm { padding: 28px 32px 32px; }

/* Form rows */
.form-row { display: grid; gap: 16px; }
.form-row.two-col   { grid-template-columns: 1fr 1fr; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.req { color: #e53e3e; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
input.invalid, textarea.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.08);
}
textarea { resize: vertical; min-height: 90px; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { opacity: .4; }

.field-error {
  font-size: 12px;
  color: #e53e3e;
  min-height: 16px;
  display: block;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-option { cursor: pointer; }
.radio-option input[type="radio"] { display: none; }
.radio-label {
  display: inline-block;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--ivory);
  transition: all .15s;
  cursor: pointer;
}
.radio-option input:checked + .radio-label {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 600;
}
.radio-option:hover .radio-label {
  border-color: var(--green-light);
  color: var(--green);
}

/* File drop */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: border-color .18s, background .18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--green);
  background: var(--green-pale);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
}
.file-drop-inner {
  padding: 24px 20px;
  text-align: center;
  pointer-events: none;
}
.file-drop-inner svg { width: 32px; height: 32px; color: var(--text-muted); margin: 0 auto 8px; display: block; }
.file-drop-inner p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.file-drop-inner strong { color: var(--green); }
.file-drop-inner span { font-size: 12px; color: var(--text-muted); }

.file-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--green-pale);
  gap: 12px;
}
#fileName { font-size: 13px; font-weight: 500; color: var(--green-dark); }
.remove-file {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.remove-file:hover { background: rgba(0,0,0,.08); color: var(--text); }

/* Submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
  border-radius: var(--radius);
  margin-top: 8px;
  position: relative;
}
.btn-spinner svg.spin {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Success state */
.form-success {
  padding: 48px 32px;
  text-align: center;
}
.success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.form-success p  { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: #23201e;
  color: rgba(255,255,255,.8);
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo-footer .logo-text { color: rgba(255,255,255,.9); }
.footer-brand .logo-footer .logo-text strong { color: #95d5b2; }
.footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin-top: 16px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .15s;
}
.footer-col ul a:hover { color: #fff; }
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.45); }

/* ── Scroll-to-top ───────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s, transform .25s;
  z-index: 500;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--green-dark); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { flex-direction: column; text-align: center; padding: 56px 24px 48px; gap: 40px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .topbar { justify-content: center; flex-direction: column; text-align: center; gap: 8px; }
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .header-inner { gap: 16px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 80px 28px 28px;
    z-index: 99;
    gap: 4px;
    overflow-y: auto;
  }
  .main-nav.open > a, .main-nav.open .nav-dropdown > a {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .form-row.two-col, .form-row.three-col { grid-template-columns: 1fr; }
  #quoteForm { padding: 20px; }
  .form-card-header { padding: 22px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-img-col { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .form-success { padding: 32px 20px; }
}
