/* ============================================
   TLSmith Appraisal - Professional Theme
   Navy #1a2744 + Gold #c5a55a
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #1a2744;
  --navy-light: #243358;
  --navy-dark: #111b30;
  --gold: #c5a55a;
  --gold-light: #d4b96e;
  --gold-muted: rgba(197,165,90,0.15);
  --cream: #f8f5f0;
  --cream-dark: #ede8e0;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-mid: #5a5a5a;
  --text-light: #8a8a8a;
  --border: #e0dbd3;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --section-padding: 5rem 1.5rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-mid); }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(26,39,68,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(197,165,90,0.2);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }

.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; }
.nav-logo span {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.5px;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.3px; text-transform: uppercase; text-decoration: none;
  transition: color 0.2s; padding: 0.25rem 0; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold); color: var(--navy) !important; padding: 0.5rem 1.25rem;
  border-radius: 3px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
  font-size: 0.8rem;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light); color: var(--navy) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; right: -100%; width: 260px; height: calc(100vh - 72px);
    background: var(--navy-dark); flex-direction: column; padding: 2rem 1.5rem; gap: 1.25rem;
    transition: right 0.3s ease; align-items: flex-start;
  }
  .nav-links.open { right: 0; }
}

/* ---- Hero ---- */
.hero {
  background: var(--navy); color: var(--white); padding: 10rem 1.5rem 6rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  opacity: 0.8;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .container { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero .gold-line { width: 60px; height: 2px; background: var(--gold); margin-bottom: 1.5rem; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.8; }

/* ---- Sections ---- */
.section { padding: var(--section-padding); }
.section--alt { background: var(--white); }
.section-label {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem; display: block;
}
.section-intro { max-width: 680px; margin-bottom: 3rem; }

/* ---- Trust / Built for Scrutiny ---- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.trust-card {
  padding: 1.75rem; border: 1px solid var(--border); border-radius: 4px;
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.trust-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(197,165,90,0.1); }
.trust-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.9rem; margin: 0; }

/* ---- About ---- */
.about-content { max-width: 720px; }
.about-content p { font-size: 1.05rem; }
.credential-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold-muted); border: 1px solid rgba(197,165,90,0.3);
  padding: 0.5rem 1rem; border-radius: 3px; margin-top: 1rem;
  font-size: 0.85rem; font-weight: 600; color: var(--navy);
}

/* ---- Services ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem;
}
.service-block { padding: 2.5rem; background: var(--white); border: 1px solid var(--border); border-radius: 4px; }
.service-block h3 { font-size: 1.3rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gold); }
.service-block ul { list-style: none; padding: 0; }
.service-block li {
  padding: 0.5rem 0 0.5rem 1.5rem; position: relative; font-size: 0.95rem; color: var(--text-mid);
}
.service-block li::before {
  content: ''; position: absolute; left: 0; top: 0.95rem;
  width: 6px; height: 6px; border: 1px solid var(--gold); border-radius: 50%;
}

/* ---- Why Choose ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem;
}
.why-item { display: flex; gap: 1rem; padding: 1.5rem; background: var(--cream); border-radius: 4px; }
.why-icon {
  flex-shrink: 0; width: 48px; height: 48px; background: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 20px; height: 20px; }
.why-item h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.why-item p { margin: 0; font-size: 0.9rem; }

/* ---- Service Areas ---- */
.areas-content { text-align: center; max-width: 600px; margin: 0 auto; }
.area-tags { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.area-tag {
  padding: 0.75rem 2rem; border: 2px solid var(--navy); border-radius: 3px;
  font-weight: 600; font-size: 1.05rem; color: var(--navy);
}

/* ---- Contact ---- */
.contact-section { background: var(--navy); color: var(--white); padding: var(--section-padding); }
.contact-section h2 { color: var(--white); }
.contact-section p { color: rgba(255,255,255,0.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.contact-form label {
  display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.85rem 1rem; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; color: var(--white);
  font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--gold);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.contact-form select option { background: var(--navy); color: var(--white); }
.contact-form textarea { min-height: 120px; resize: vertical; }

.btn-gold {
  display: inline-block; background: var(--gold); color: var(--navy); padding: 0.85rem 2.5rem;
  border: none; border-radius: 3px; font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-light); }

.contact-info { padding-top: 1rem; }
.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.contact-info-item p { color: rgba(255,255,255,0.8); margin: 0; }
.contact-info-item a { color: var(--gold-light); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-dark); padding: 2rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-inner p { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-links a:hover { color: var(--gold); }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy-dark); color: var(--white); padding: 1.25rem 1.5rem;
  display: none; border-top: 1px solid rgba(197,165,90,0.3);
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0; flex: 1; min-width: 280px; }
.cookie-inner a { color: var(--gold); }
.cookie-btns { display: flex; gap: 0.75rem; }
.cookie-btns button {
  padding: 0.5rem 1.25rem; border-radius: 3px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); letter-spacing: 0.5px; text-transform: uppercase;
}
.btn-accept { background: var(--gold); color: var(--navy); border: none; }
.btn-decline { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); }
.btn-accept:hover { background: var(--gold-light); }
.btn-decline:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ---- Utilities ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- Policy Pages ---- */
.policy-page { padding: 8rem 1.5rem 4rem; }
.policy-page h1 { margin-bottom: 0.5rem; }
.policy-page .last-updated { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2.5rem; }
.policy-page h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.policy-page p, .policy-page li { color: var(--text-mid); font-size: 0.95rem; }
.policy-page ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.policy-page li { margin-bottom: 0.35rem; }


/* ---- Form Messages ---- */
.form-message {
  margin-top: 1rem; padding: 0; font-size: 0.9rem; border-radius: 3px;
  min-height: 0; transition: all 0.3s ease;
}
.form-message:empty { display: none; }
.form-message--success {
  display: block; padding: 0.85rem 1rem;
  background: rgba(76,175,80,0.15); border: 1px solid rgba(76,175,80,0.3);
  color: #a5d6a7;
}
.form-message--error {
  display: block; padding: 0.85rem 1rem;
  background: rgba(244,67,54,0.15); border: 1px solid rgba(244,67,54,0.3);
  color: #ef9a9a;
}

/* ---- reCAPTCHA v3 badge (hidden per Google TOS with attribution text) ---- */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-notice { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 0.75rem; line-height: 1.5; }
.recaptcha-notice a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.recaptcha-notice a:hover { color: var(--gold); }
