/* AmoreTek site styles
   Brand: Amore Teal #0F6B73 · Amber #F2A33A · Ink #17252B · Warm White #FBF8F2
   Type: Newsreader (headlines) + DM Sans (body)
   Most page layout lives inline in each page; this file holds shared and responsive rules. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FBF8F2;
  color: #17252B;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
img, svg { max-width: 100%; }
a { color: #0F6B73; }
a:hover { color: #0A4A50; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #F2A33A; outline-offset: 2px; border-radius: 4px; }
input, select, textarea, button { font: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span[aria-hidden] { transition: transform .2s ease; }
details[open] summary span[aria-hidden] { transform: rotate(45deg); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #FFFFFF; color: #17252B; padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ---------- Top bar ---------- */
.topbar { background: #17252B; color: #D6E2E4; font-size: 14px; line-height: 1.5; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 9px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar a { color: #F2A33A; font-weight: 700; text-decoration: none; }
.topbar a.tel { color: #FFFFFF; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .97); border-bottom: 1px solid #EADFCB; backdrop-filter: saturate(140%) blur(6px); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: #17252B; text-decoration: none; }
.brand:hover { color: #17252B; }
.brand svg { display: block; flex: none; }
.brand-name { display: block; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 31px; line-height: 1; letter-spacing: -0.02em; position: relative; top: 2px; }
.brand-name span { color: #0F6B73; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav .nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #33424A; font-weight: 500; font-size: 16px; text-decoration: none; }
.main-nav .nav-link:hover { color: #0F6B73; }
.main-nav .nav-link[aria-current="page"] { color: #0F6B73; font-weight: 700; box-shadow: inset 0 -2px 0 #0F6B73; }
.btn-nav { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-left: 10px; padding: 0 22px; border-radius: 8px; background: #0F6B73; color: #FFFFFF; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-nav:hover { background: #0A4A50; color: #FFFFFF; }
.nav-toggle { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #17252B; color: #D6E2E4; font-size: 16px; line-height: 1.6; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 72px 32px 40px; display: flex; flex-wrap: wrap; gap: 48px 64px; }
.footer-brand { flex: 2 1 320px; min-width: 0; }
.footer-brand p { margin: 20px 0 24px; max-width: 26em; }
.brand-light, .brand-light:hover { color: #FFFFFF; display: inline-flex; }
.brand-light .brand-name { font-size: 30px; }
.brand-light .brand-name span { color: #F2A33A; }
.footer-col { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-contact { flex-basis: 240px; }
.footer-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F2A33A; }
.footer-col a { color: #D6E2E4; text-decoration: none; }
.footer-col span a { color: #FFFFFF; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2E3E46; }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: #A9B8BE; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: #A9B8BE; }
.footer-legal a:hover { color: #FFFFFF; }
.btn-amber { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 8px; background: #F2A33A; color: #17252B; font-weight: 700; text-decoration: none; }
.btn-amber:hover { background: #F5B65E; color: #17252B; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form h2, .form-success h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.15; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label, .chip-group legend { font-size: 15px; font-weight: 700; }
.optional { font-weight: 400; color: #5F6D75; }
.form-field input, .form-field select, .form-field textarea { min-height: 48px; padding: 0 14px; border: 1px solid #CFC2AB; border-radius: 8px; background: #FFFFFF; color: #17252B; font-size: 17px; }
.form-field textarea { padding: 12px 14px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid #0F6B73; outline-offset: 1px; border-color: #0F6B73; }
.form-field [aria-invalid="true"] { border-color: #B42318; }
.field-error { margin: 0; font-size: 14px; color: #B42318; }
.form-alert { padding: 14px 18px; border-radius: 10px; background: #FDECEA; color: #8A1C12; font-size: 16px; }
.chip-group { border: none; margin: 0; padding: 0; }
.chip-group legend { margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #CFC2AB; border-radius: 999px; font-size: 15px; cursor: pointer; background: #FFFFFF; }
.chip:has(input:checked) { border-color: #0F6B73; background: #E1F1EE; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: #0F6B73; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn-primary { min-height: 52px; padding: 0 32px; border-radius: 8px; border: none; background: #0F6B73; color: #FFFFFF; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: #0A4A50; }
.form-note { font-size: 14px; color: #5F6D75; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 48px 0; }
.form-success-icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: #E1F1EE; display: flex; align-items: center; justify-content: center; }
.form-success p { margin: 12px auto 28px; color: #44525A; max-width: 28em; }
.btn-outline { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1.5px solid #0F6B73; background: #FFFFFF; color: #0F6B73; font-weight: 700; text-decoration: none; }

/* Subtle hover lift on linked cards */
main a[style*="border-radius: 14px"]:hover { border-color: #0F6B73 !important; box-shadow: 0 10px 30px rgba(23, 37, 43, .08); }
main a[style*="border-radius: 8px"]:hover { filter: brightness(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding: 12px 20px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid #CFC2AB; border-radius: 8px; background: #FFFFFF; color: #17252B; font-weight: 700; font-size: 16px; cursor: pointer; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 8px; }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link { border-top: 1px solid #EADFCB; padding: 0 4px; }
  .main-nav .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 #0F6B73; padding-left: 12px; }
  .btn-nav { margin: 10px 0 0; }
  .brand-name { font-size: 27px; }
  .topbar-inner { padding: 8px 20px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar-inner > span:first-child { display: none; }
  /* Tighten the 32px side gutters used throughout the pages */
  main [style*="padding: 0 32px"], main [style*="32px 0 32px"] { padding-left: 16px !important; padding-right: 16px !important; }
  main [style*="max-width: 1200px"], main [style*="max-width: 1000px"], main [style*="max-width: 900px"], main [style*="max-width: 820px"] { padding-left: 16px !important; padding-right: 16px !important; }
  .footer-inner, .footer-bottom-inner { padding-left: 16px; padding-right: 16px; }
}
