/*
Theme Name: Southern Door Investments
Theme URI: https://southerndoorinvestments.com
Author: SDI
Description: Elegant, high-end real estate theme with Buy/Sell/Join, Off-Market listings, and ATL34 portfolio.
Version: 1.0.0
Text Domain: sdi
*/
:root { --ink:#0C1222; --charcoal:#1F2937; --gold:#C9A646; --ivory:#F9F7F2; --slate:#9AA5B1; }
*{ box-sizing:border-box }
body{ margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif; color:var(--charcoal); background:var(--ivory); line-height:1.55 }
h1,h2,h3,h4{ font-family:"Playfair Display",serif; color:var(--ink); margin:0 0 .5rem }
h1{ font-size:clamp(2rem,2.8vw,3.25rem) } h2{ font-size:clamp(1.5rem,2vw,2rem) } h3{ font-size:clamp(1.1rem,1.5vw,1.4rem) }
p{ margin:0 0 1rem } .container{ width:min(1200px,92%); margin:0 auto } .unstyled{ list-style:none; padding:0; margin:0 }
.muted{ color:var(--slate) } .mt{ margin-top:2rem }
.site-header{ background:rgba(249,247,242,.9); position:sticky; top:0; backdrop-filter:blur(6px); border-bottom:1px solid #e8e4da; z-index:10 }
.site-header .nav{ display:flex; align-items:center; justify-content:space-between; padding:.75rem 0 }
.brand img{ height:44px } .site-header nav ul{ display:flex; gap:1rem; align-items:center }
.site-header nav a{ text-decoration:none; color:var(--ink); font-weight:600; padding:.4rem .6rem; border-radius:999px }
.site-header nav a.cta{ background:var(--ink); color:#fff } .site-header nav a:hover{ background:#ece8dc }
.hero{ background:linear-gradient(120deg,#fff 0%,#f5f3ec 60%); padding:5rem 0 3.5rem; border-bottom:1px solid #eee5d3 }
.hero h1{ font-size:clamp(2.2rem,4vw,4rem) } .hero p{ font-size:1.15rem; max-width:60ch }
.hero-actions{ display:flex; gap:.75rem; margin-top:1rem } .btn{ display:inline-block; padding:.8rem 1.1rem; border-radius:12px; border:1px solid var(--ink); color:var(--ink); text-decoration:none; font-weight:600 }
.btn-primary{ background:var(--gold); border-color:var(--gold); color:#1a1200 } .btn:hover{ transform:translateY(-1px) }
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; padding:2rem 0 }
.pillar{ background:#fff; padding:1.25rem; border-radius:16px; border:1px solid #eee; box-shadow:0 6px 16px rgba(12,18,34,.05) }
.pillar .arrow{ text-decoration:none; font-weight:600; color:var(--ink) }
.feature .feature-card{ background:var(--ink); color:#fff; padding:1.5rem; border-radius:16px; display:flex; align-items:center; justify-content:space-between; gap:1rem }
.cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem }
.card{ background:#fff; padding:1rem; border-radius:14px; border:1px solid #eee; box-shadow:0 6px 16px rgba(12,18,34,.05) }
.media-grid{ grid-template-columns:repeat(3,1fr) } .media-tile{ background:#e9e5db; aspect-ratio:4/3; border-radius:12px }
.grid.two{ display:grid; grid-template-columns:1.2fr .8fr; gap:1rem } .grid.footer-grid{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:1rem }
.pad{ padding:2rem 0 } .filters{ display:flex; gap:.5rem; margin-bottom:1rem } .filters input,.filters select{ padding:.6rem .8rem; border-radius:10px; border:1px solid #ddd; background:#fff }
.site-footer{ margin-top:3rem; padding:2rem 0; border-top:1px solid #ece8dc; background:#f8f6ef } .site-footer h4,.site-footer h5{ margin-bottom:.5rem }
.copyright{ margin-top:1rem; color:var(--slate); font-size:.9rem }
@media (max-width:860px){ .pillars{ grid-template-columns:1fr } .grid.two{ grid-template-columns:1fr } .grid.footer-grid{ grid-template-columns:1fr } }

/* Mobile hamburger behavior */
@media (max-width: 860px){
  .mobile-nav-toggle { 
    border: 1px solid #ddd; background:#fff; border-radius:10px; 
    padding:.35rem .6rem; font-size:1.1rem; margin-left:auto; 
  }
  .site-header nav { display:none; }
  .site-header nav.open { display:block; }
  .site-header nav ul { flex-direction: column; align-items:flex-start; gap:.5rem; padding-top:.5rem; }
}

/* ====== SDI x HubSpot form base ====== */
:root {
  --sdi-text: #1C1D21;        /* dark charcoal */
  --sdi-muted: #6B7280;       /* subtle gray for help/error */
  --sdi-border: #E5E5E5;      /* field borders */
  --sdi-bg: #ffffff;          /* field background */
  --sdi-accent: #F37338;      /* SDI orange */
  --sdi-accent-hover: #D85E28;
  --sdi-radius: 6px;
  --sdi-focus: #2B6CB0;       /* accessible blue focus ring */
  --sdi-shadow: 0 0 0 3px rgba(43,108,176,0.15);
}

/* HubSpot embeds render inside .hs-form, .hbspt-form */
.hbspt-form, .hs-form {
  font-family: "Inter", Helvetica, Arial, sans-serif !important;
  color: var(--sdi-text);
}

/* Layout spacing */
.hbspt-form form,
.hs-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.hs-form .field,
.hs-form-field {
  margin-bottom: 16px;
}

/* Labels */
.hs-form label,
.hs-form .hs-form-field > label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--sdi-text);
  margin-bottom: 6px;
  display: inline-block;
}

/* Inputs + textareas + selects */
.hs-input,
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form input[type="url"],
.hs-form input[type="number"],
.hs-form textarea,
.hs-form select {
  width: 100% !important;
  max-width: 100%;
  background: var(--sdi-bg);
  color: var(--sdi-text);
  border: 1px solid var(--sdi-border);
  border-radius: var(--sdi-radius);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Focus states */
.hs-input:focus,
.hs-form textarea:focus,
.hs-form select:focus {
  outline: none !important;
  border-color: var(--sdi-focus);
  box-shadow: var(--sdi-shadow);
}

/* Placeholder */
.hs-input::placeholder,
.hs-form textarea::placeholder {
  color: #9CA3AF;
}

/* Checkboxes / radios */
.hs-form input[type="checkbox"],
.hs-form input[type="radio"] {
  accent-color: var(--sdi-accent);
}

/* GDPR/consent text */
.legal-consent-container,
.legal-consent-container p {
  color: var(--sdi-muted);
  font-size: 13px;
}

/* Error + help text */
.hs-error-msgs,
.hs-error-msg,
.hs-form .hs-error-msgs li label {
  color: #B91C1C !important;      /* accessible red */
  font-size: 13px !important;
  margin-top: 6px;
}
.hs-input.error,
.hs-form .error input,
.hs-form .error textarea,
.hs-form .error select {
  border-color: #B91C1C !important;
}

/* Submit button */
.hs-submit .actions input[type="submit"],
.hs-button.primary,
.hbspt-form input[type="submit"] {
  appearance: none;
  background: var(--sdi-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--sdi-radius) !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background .15s ease, transform .02s ease;
}
.hs-submit .actions input[type="submit"]:hover,
.hs-button.primary:hover,
.hbspt-form input[type="submit"]:hover {
  background: var(--sdi-accent-hover) !important;
}
.hs-submit .actions input[type="submit"]:active,
.hs-button.primary:active,
.hbspt-form input[type="submit"]:active {
  transform: translateY(1px);
}
.hs-submit .actions input[type="submit"]:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Width control for typical content areas */
.hbspt-form form {
  max-width: 680px; /* tweak to match your content width */
}

/* Compact footer/newsletter variant (wrap the form in .sdi-inline if needed) */
.sdi-inline .hs-form .field { margin-bottom: 10px; }
.sdi-inline .hs-submit .actions input[type="submit"] { padding: 10px 14px; }

/* Dark section helper:
   If a form sits on a dark block, wrap its container with .sdi-dark */
.sdi-dark .hs-form label,
.sdi-dark .legal-consent-container,
.sdi-dark .legal-consent-container p { color: #F3F4F6; }
.sdi-dark .hs-input,
.sdi-dark .hs-form textarea,
.sdi-dark .hs-form select {
  background: rgba(255,255,255,0.96);
  border-color: #d1d5db;
  color: #111827;
}
