/* =========================================================
   Ariella Management — Stylesheet
   Theme: traditional / trust-focused (navy + serif)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Light theme (default) */
  --navy-900: #0a1f44;
  --navy-800: #122a55;
  --navy-700: #1e3a6b;
  --navy-600: #2c4a7c;
  --navy-500: #4a6694;
  --gold:    #c9a961;
  --gold-soft: #d8b977;

  --bg:       #fafaf7;
  --bg-alt:   #f3f1ea;
  --surface:  #ffffff;
  --surface-2:#f7f5ee;

  --text:     #131722;
  --text-soft:#3d465a;
  --text-mute:#6a7388;
  --border:   #e2dfd4;
  --border-strong: #d0ccbd;

  --primary:  var(--navy-900);
  --primary-hover: var(--navy-700);
  --accent:   var(--gold);

  --shadow-sm: 0 1px 2px rgba(10,31,68,.06), 0 1px 1px rgba(10,31,68,.04);
  --shadow-md: 0 4px 12px rgba(10,31,68,.08), 0 2px 4px rgba(10,31,68,.04);
  --shadow-lg: 0 12px 32px rgba(10,31,68,.10), 0 4px 8px rgba(10,31,68,.04);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-serif: "Cormorant Garamond", "Hoefler Text", "Garamond", "Georgia", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition: 200ms cubic-bezier(.2,.8,.3,1);
}

/* Dark theme */
[data-theme="dark"] {
  --navy-900: #e6ecf7;
  --navy-800: #c9d4e8;
  --navy-700: #a7b6d2;
  --navy-600: #8a9bbb;
  --navy-500: #6b7d9f;
  --gold:    #d4b574;
  --gold-soft: #e1c489;

  --bg:       #0b1322;
  --bg-alt:   #0f1a2e;
  --surface:  #131e36;
  --surface-2:#192541;

  --text:     #ebeef6;
  --text-soft:#bcc4d6;
  --text-mute:#7e89a3;
  --border:   #243352;
  --border-strong: #324466;

  --primary:  #e6ecf7;
  --primary-hover: #ffffff;
  --accent:   #d4b574;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6);
}

/* Auto dark when no manual choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-900: #e6ecf7;
    --navy-800: #c9d4e8;
    --navy-700: #a7b6d2;
    --navy-600: #8a9bbb;
    --navy-500: #6b7d9f;
    --gold:    #d4b574;
    --gold-soft: #e1c489;

    --bg:       #0b1322;
    --bg-alt:   #0f1a2e;
    --surface:  #131e36;
    --surface-2:#192541;

    --text:     #ebeef6;
    --text-soft:#bcc4d6;
    --text-mute:#7e89a3;
    --border:   #243352;
    --border-strong: #324466;

    --primary:  #e6ecf7;
    --primary-hover: #ffffff;
    --accent:   #d4b574;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,.5);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.6);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }

p { margin: 0 0 1em; color: var(--text-soft); }

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

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: var(--bg);
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light,
[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo-dark { display: block; }
}
.brand:hover .brand-logo { opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .site-header,
:root:not([data-theme="light"]) .site-header {
  background: rgba(11, 19, 34, .85);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
}

.primary-nav { display: none; }
@media (min-width: 880px) {
  .primary-nav { display: block; }
}
.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: .98rem;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }

/* Tenant Portal button — slightly smaller, ghost-style */
.header-portal {
  display: none;
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-soft);
}
.header-portal:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface);
}
@media (min-width: 1000px) {
  .header-portal { display: inline-flex; }
}
.header-portal svg { color: var(--accent); }

.mobile-portal {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 880px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
  animation: slide-down var(--transition);
}
.mobile-nav ul {
  list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem;
}
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav li:last-child { border: none; }
.mobile-nav a {
  display: block;
  padding: .9rem 0;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-phone { color: var(--accent) !important; }
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(10,31,68,.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(201,169,97,.10), transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .hero-bg,
:root:not([data-theme="light"]) .hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(212,181,116,.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(36,51,82,.45), transparent 60%);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 1.5rem;
}
.hero-title-accent {
  font-style: italic;
  color: var(--text-soft);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 2.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.trust-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.trust-label {
  font-size: .85rem;
  color: var(--text-mute);
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}
@media (max-width: 640px) {
  .trust-divider { display: none; }
  .hero-trust { gap: 1.25rem; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-services { background: var(--bg-alt); }
.section-areas    { background: var(--bg); }
.section-about    { background: var(--bg-alt); }
.section-contact  { background: var(--bg); }

.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-title {
  margin: 0 0 1rem;
}
.section-lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--surface-2);
  color: var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.35rem;
  margin: 0 0 .75rem;
}
.service-card p {
  margin: 0;
  font-size: .98rem;
  color: var(--text-soft);
}

.services-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.services-note h4 {
  margin: 0 0 .5rem;
  color: var(--accent);
}
.services-note p {
  margin: 0;
  color: var(--text-soft);
}

/* ---------- Areas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 880px) {
  .areas-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

.areas-map svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(10,31,68,.08));
}
.county {
  fill: var(--surface-2);
  stroke: var(--border-strong);
  stroke-width: 1.5;
  transition: fill var(--transition);
}
.county.served {
  fill: var(--primary);
}
.map-labels text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  fill: var(--bg);
  text-anchor: middle;
}

.areas-towns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.town-group {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.town-group:last-child { border-bottom: none; }
.town-group h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
}
.town-group p {
  margin: 0;
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- About ---------- */
.about-inner {
  max-width: 820px;
}
.about-content .about-lede {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.6;
}
.about-pillars {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .about-pillars { grid-template-columns: 1fr 1fr; }
}
.about-pillars li {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text-soft);
}
.about-pillars strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-sans);
  margin-bottom: .25rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-item h4 {
  margin: 0 0 .25rem;
  color: var(--text-mute);
  font-size: .82rem;
}
.contact-item p,
.contact-item address {
  margin: 0;
  font-style: normal;
  color: var(--text);
  line-height: 1.5;
}
.contact-link {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}
.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-field label span { color: var(--accent); }

.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  padding: .75rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,97,.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: .5rem;
}
.form-status {
  margin: 1rem 0 0;
  font-size: .95rem;
  min-height: 1.4em;
}
.form-status.is-success { color: #1c7c3a; }
.form-status.is-error   { color: #b3261e; }
[data-theme="dark"] .form-status.is-success,
:root:not([data-theme="light"]) .form-status.is-success { color: #6dd494; }
[data-theme="dark"] .form-status.is-error,
:root:not([data-theme="light"]) .form-status.is-error { color: #f0867d; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; align-items: center; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo-dark { display: none; }
[data-theme="dark"] .footer-logo-light,
[data-theme="light"] .footer-logo-dark { display: none; }
[data-theme="dark"] .footer-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-logo-light { display: none; }
  :root:not([data-theme="light"]) .footer-logo-dark { display: block; }
}
.footer-tagline {
  margin: 0;
  font-size: .9rem;
  color: var(--text-mute);
}
.footer-meta {
  font-size: .9rem;
  color: var(--text-mute);
}
.footer-meta p { margin: 0 0 .35rem; color: var(--text-mute); }
.footer-meta a { color: var(--text-soft); }
.footer-meta a:hover { color: var(--accent); }
.footer-copy { margin-top: 1rem !important; font-size: .82rem; }
