/* 151 Dental & Aesthetics — proposal build
   Design direction: warm-local (gold/beige, rounded, soft shadows) */

:root {
  --color-bg: #faf6ef;
  --color-surface: #ffffff;
  --color-surface-soft: #f5ead9;
  --color-text: #2a2117;
  --color-text-soft: #4a3c2b;
  --color-primary: #b08d47;
  --color-primary-dark: #8f6f34;
  --color-on-primary: #2a2117;
  --color-accent: #c9a876;
  --color-border: #e8d9bf;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 24px rgba(42, 33, 23, 0.10);
  --shadow-softer: 0 6px 14px rgba(42, 33, 23, 0.08);
  --banner-height: 44px;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: var(--banner-height);
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Proposal banner (system chrome) ---------- */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1712;
  color: #f4ead8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 10px;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- Watermark ---------- */
.watermark {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  overflow: hidden;
}

.watermark span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 9vw;
  color: #000000;
  opacity: 0.06;
  transform: rotate(-30deg);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: var(--banner-height);
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }

.logo {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
}

.phone-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 800;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-softer);
  white-space: nowrap;
  font-size: 0.95rem;
}

.phone-link:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
}

.site-nav {
  width: 100%;
  order: 3;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-soft);
  font-weight: 700;
}

.site-nav a:hover { background: var(--color-surface-soft); }

.site-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: var(--color-text);
}

@media (min-width: 720px) {
  .site-nav { width: auto; order: 2; }
  .site-nav ul { margin-top: 0; }
  .phone-link { order: 3; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 20px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 340px;
}

.hero-copy .eyebrow {
  display: inline-block;
  background: var(--color-surface-soft);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero-copy h1 { margin-bottom: 0.4em; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-softer);
}

.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover { background: var(--color-surface-soft); }

@media (min-width: 800px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-copy, .hero-media { flex: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 30px 0; }
.section-soft { background: var(--color-surface-soft); }

.section-head { max-width: 640px; margin-bottom: 24px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-softer);
  border: 1px solid var(--color-border);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg { width: 28px; height: 28px; }

.card p:last-child { margin-bottom: 0; }

/* ---------- Facts list ---------- */
.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.facts-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.facts-list strong { display: block; color: var(--color-primary-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-softer);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-info img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 20px;
}

form.enquiry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-softer);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #a4453a;
}

.field-error {
  color: #8a3428;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.field-error.is-visible { display: block; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  color: var(--color-text);
  display: none;
}

.form-status.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #231d15;
  color: #f2e8d8;
  padding: 30px 0 20px;
  margin-top: 40px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0 0 16px;
}

.footer-nav a { color: #f2e8d8; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { text-decoration: underline; }

.site-footer a.footer-tel { color: #e7c98a; }

.site-footer p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #d8ccb8;
}

.proposal-note {
  border-top: 1px solid #3a3123;
  padding-top: 14px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #c9bca4;
}

/* ---------- Mobile nav toggle ---------- */
@media (max-width: 719px) {
  .nav-toggle { display: inline-block; order: 2; margin-left: 8px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .phone-link { order: 1; margin-left: auto; }
}
