/* Shoreline Property Management - Styles */
:root {
  /* Light defaults (overridden for dark) */
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --surface: #f8fafc; /* slate-50 */
  --border: #e2e8f0; /* slate-200 */
  --primary: #0ea5e9; /* sky-500 */
  --primary-contrast: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);

  color-scheme: light dark;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e6e6e6;
  --muted: #b0b3b8;
  --surface: #121a2e;
  --border: #22304e;
  --primary: #38bdf8; /* sky-400 */
  --primary-contrast: #001018;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; background: var(--primary); color: var(--primary-contrast); padding: 8px 12px; border-radius: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in oklab, var(--bg), transparent 0%);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: inherit; }
.brand:hover { text-decoration: none; opacity: .95; }
.logo { height: 44px; width: auto; border-radius: 6px; box-shadow: var(--shadow); }
.brand-name { white-space: nowrap; }

.nav { display: none; gap: 18px; }
.nav a { color: inherit; font-weight: 600; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: none; }

/* Toggle Switch */
.theme-control { display: flex; align-items: center; }
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { display: none; }
.slider {
  width: 52px; height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background .2s ease, border-color .2s ease;
}
.switch-icons { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 8px; color: var(--muted); font-size: 0; }
.icon-sun { justify-self: start; }
.icon-moon { justify-self: end; }
.switch input:checked ~ .slider { background: color-mix(in oklab, var(--primary), var(--surface) 65%); border-color: color-mix(in oklab, var(--primary), var(--surface) 35%); }

/* Hero */
.hero { position: relative; min-height: 72vh; display: grid; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(to bottom, color-mix(in oklab, var(--bg), transparent 35%), color-mix(in oklab, var(--bg), transparent 35%)), url('/img/block.avif'); background-size: cover; background-position: center; filter: saturate(105%); }
.hero-bg-atb { position: absolute; inset: 0; background-image: linear-gradient(to bottom, color-mix(in oklab, var(--bg), transparent 35%), color-mix(in oklab, var(--bg), transparent 35%)), url('/img/home.jpg'); background-size: cover; background-position: center; filter: saturate(105%); }
.hero-inner { position: relative; padding: 70px 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 12px; }
.hero p { max-width: 60ch; margin: 0 0 20px; color: var(--muted); }

.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; }
.btn.primary { background: var(--primary); color: var(--primary-contrast); }
.btn.primary:hover { filter: brightness(0.95); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--border); color: inherit; }
.btn.ghost:hover { background: var(--surface); text-decoration: none; }

.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } }

.media-card { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--bg); }
.media-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.checklist { padding-left: 1.2em; }
.checklist li { margin: 8px 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 8px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card-icon { font-size: 28px; line-height: 1; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Show nav on larger screens */
@media (min-width: 900px) { .nav { display: inline-flex; } }

/* Contact form */
.contact-form { background: var(--bg); border: 1px solid var(--border); padding: 20px; border-radius: 14px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-weight: 600; }
.form-row input, .form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: inherit; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid color-mix(in oklab, var(--primary), transparent 60%); border-color: var(--primary); }
.form-row.hp { position: absolute; left: -9999px; }
.error { color: #b91c1c; font-size: 0.9rem; }
.notice { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; background: var(--surface); }
.notice.success { border-color: #16a34a; }

/* Partner and responsive logo sizes */
@media (min-width: 900px) {
  .logo { height: 56px; }
}
.partner-logo {
  height: 120px;
  width: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
@media (min-width: 900px) {
  .partner-logo { height: 160px; }
}

/* Mobile menu styles */
.header-inner { flex-wrap: wrap; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  box-shadow: var(--shadow);
}
.menu-toggle:hover { filter: brightness(0.98); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* Collapsible nav on mobile */
.nav.open {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0;
}
.nav.open a {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.nav.open a:first-child { border-top: 0; }

/* Desktop nav overrides remain inline */
@media (min-width: 900px) {
  .nav { display: inline-flex; flex-direction: row; align-items: center; width: auto; padding: 0; }
  .nav a { padding: 0; border: 0; }
}
