/*
 * Colonies — botanical craft, considered spaces.
 * A warm editorial system for the local wallpaper installation site.
 */

:root {
  color-scheme: light;
  --ink: #183b32;
  --ink-deep: #102e27;
  --ink-muted: #435b50;
  --ivory: #f8f5ed;
  --paper: #fffdf8;
  --cream: #eee9dc;
  --sand: #ded5c2;
  --clay: #a45d43;
  --gold: #bc945b;
  --rule: rgba(24, 59, 50, .2);
  --shadow: 0 18px 52px rgba(21, 44, 35, .13);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --width: 1376px;
  --gutter: clamp(22px, 4.2vw, 64px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--clay); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea { color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
::selection { background: #d8c3a2; color: var(--ink-deep); }

h1, h2, h3, h4, p, figure { margin-top: 0; }
h1, h2, h3, h4 {
  color: inherit;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 6.4vw, 6.8rem); }
h2 { font-size: clamp(2.35rem, 4vw, 4.45rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - (2 * var(--gutter)), var(--width)); margin-inline: auto; }
.section { padding-block: clamp(76px, 8vw, 128px); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 68px); }
.section-heading h2 { margin-bottom: .35em; }
.section-heading > p:not(.eyebrow) { max-width: 625px; color: var(--ink-muted); font-size: clamp(1rem, 1.2vw, 1.125rem); }
.section-dark .section-heading > p:not(.eyebrow) { color: rgba(248, 245, 237, .8); }
.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--clay);
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.45;
  text-transform: uppercase;
}
.section-dark .eyebrow, .home-hero .eyebrow { color: #e5c79e; }

/* The masthead stays in the document flow; every destination is a real link. */
.site-header { position: relative; z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 100px; display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--ink); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -.035em; }
.brand-copy small, .brand-copy span { margin-top: 5px; font-family: var(--sans); font-size: .56rem; font-weight: 700; letter-spacing: .15em; line-height: 1.2; text-transform: uppercase; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 38px); margin-left: auto; }
.nav a, .header-phone { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.nav a { padding-block: 12px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-color: var(--clay); }
.header-phone { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); }
.header-phone:hover { color: var(--ivory); background: var(--ink); }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }

/* Image is a full-bleed background, never stretched. The form remains opaque. */
.home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 680px; background: var(--ink); color: var(--ivory); }
.hero-picture { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(13, 39, 31, .89) 0%, rgba(19, 46, 37, .68) 39%, rgba(17, 42, 34, .3) 70%, rgba(17, 42, 34, .25) 100%); }
.hero-grid { min-height: inherit; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: clamp(44px, 7vw, 112px); align-items: center; padding-block: clamp(64px, 7vw, 96px); }
.hero-copy { max-width: 710px; padding-block: 30px; }
.hero-copy h1 { max-width: 10.5ch; margin-bottom: .25em; }
.hero-copy > p:not(.eyebrow) { max-width: 520px; color: rgba(255, 253, 248, .92); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.7; }
.hero-copy .btn { margin-top: 16px; }
.form-card { padding: clamp(26px, 3vw, 42px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { margin-bottom: .35em; font-size: clamp(1.85rem, 2.6vw, 2.55rem); }
.form-card > p, .form-card form > p { color: var(--ink-muted); font-size: .9rem; line-height: 1.55; }
.form-card .eyebrow { color: var(--clay); margin-bottom: 11px; }

/* Buttons and text links */
.btn, button.btn, input.btn, .form-submit {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover, button.btn:hover, input.btn:hover, .form-submit:hover { border-color: var(--clay); background: var(--clay); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.section-dark .btn-outline, .home-hero .hero-copy .btn-outline { border-color: var(--ivory); color: var(--ivory); }
.section-dark .btn-outline:hover, .home-hero .hero-copy .btn-outline:hover { background: var(--ivory); color: var(--ink); }

/* Reusable two-column editorial layouts. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.split > * { min-width: 0; }
.split h2 { margin-bottom: .4em; }
.split p:not(.eyebrow) { max-width: 610px; }
.split-media { overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.split-media img, img.split-media { width: 100%; height: 100%; object-fit: cover; }
.split-media img { transition: transform .5s ease; }
.split-media:hover img { transform: scale(1.025); }

/* Image-led service cards and portfolio, all kept to a landscape crop. */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.5vw, 36px); }
.service-card { min-width: 0; }
.service-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.service-card h3 { margin: 24px 0 10px; }
.service-card p { max-width: 38ch; color: var(--ink-muted); font-size: .95rem; }
.service-card a:not(.btn) { text-decoration-thickness: 1px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px); }
.gallery-item { position: relative; display: block; min-width: 0; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 35px 18px 14px; background: linear-gradient(transparent, rgba(16, 46, 39, .78)); color: white; font-size: .78rem; }

/* Process and frequently asked questions. */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.process-grid > * { min-width: 0; padding-top: 24px; border-top: 1px solid currentColor; }
.process-grid h3 { margin-bottom: .5em; }
.process-grid p { max-width: 38ch; font-size: .96rem; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: clamp(30px, 5vw, 80px); }
.faq-grid details, details.faq-item { border-top: 1px solid var(--rule); }
.faq-grid details:last-child, details.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-grid summary, details.faq-item summary { position: relative; display: block; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-grid summary::-webkit-details-marker, details.faq-item summary::-webkit-details-marker { display: none; }
.faq-grid summary::after, details.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 1.5rem; font-weight: 300; }
.faq-grid details[open] summary::after, details.faq-item[open] summary::after { content: '−'; }
.faq-grid details > :not(summary), details.faq-item > :not(summary) { max-width: 58ch; margin: 0 0 24px; color: var(--ink-muted); font-size: .95rem; }
.section-dark .faq-grid details { border-color: rgba(248, 245, 237, .3); }
.section-dark .faq-grid details > :not(summary) { color: rgba(248, 245, 237, .8); }

/* Interior pages, breadcrumbs and contact. */
.page-intro { padding-block: clamp(70px, 8vw, 120px); background: var(--cream); }
.page-intro h1 { max-width: 14ch; margin-bottom: .3em; }
.page-intro p:not(.eyebrow) { max-width: 650px; color: var(--ink-muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.breadcrumb { margin-bottom: 28px; color: var(--ink-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { text-decoration-thickness: 1px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: start; gap: clamp(32px, 6vw, 88px); }
.contact-layout > * { min-width: 0; }
.map-frame { width: 100%; min-height: 320px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.map-frame iframe, .map-frame img { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; object-fit: cover; }
.contact-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--rule); background: var(--paper); }
.contact-card h2, .contact-card h3 { margin-bottom: .45em; }
.contact-card a:not(.btn) { text-decoration-thickness: 1px; }

/* Forms: native labels, generous hit areas, and explicit error states. */
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; }
.field.full, .form-fields > .full { grid-column: 1 / -1; }
.field label, .field > span:first-child { display: block; margin-bottom: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .035em; line-height: 1.35; }
.field input:not([type='checkbox']):not([type='radio']), .field select, .field textarea,
.form-card input:not([type='checkbox']):not([type='radio']):not([type='submit']), .form-card select, .form-card textarea {
  display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #bdbeb1; border-radius: 0; background: #fffefa; color: var(--ink); font-size: .9rem; line-height: 1.4;
}
.field textarea, .form-card textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .form-card input::placeholder, .form-card textarea::placeholder { color: #75847a; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input[aria-invalid='true'], .field select[aria-invalid='true'], .field textarea[aria-invalid='true'], .field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #a63b30; }
.field-error, .error-message, .field .error { display: block; margin-top: 5px; color: #96352b; font-size: .75rem; line-height: 1.4; }
.form-submit { width: 100%; margin-top: 18px; cursor: pointer; }
.form-status { margin-top: 14px; font-size: .85rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.error, .form-status[role='alert'] { color: #96352b; }
.form-status.success { color: var(--ink); }

/* A compact contact shortcut that leaves the page content usable. */
.floating-cta { position: fixed; z-index: 30; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 19px; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(16,46,39,.22); font-size: .72rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-decoration: none; text-transform: uppercase; }
.floating-cta:hover { background: var(--clay); color: white; }
.site-footer { padding-block: 64px 34px; background: var(--ink-deep); color: var(--ivory); }
.site-footer .container { position: relative; }
.site-footer a { color: inherit; }
.site-footer .brand { color: var(--ivory); }
.site-footer .brand-mark { border-color: currentColor; }
.site-footer p { color: rgba(248, 245, 237, .75); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.site-footer small { color: rgba(248, 245, 237, .65); }

@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .nav { gap: 17px; }
  .header-phone { padding-inline: 14px; }
  .hero-grid { gap: 42px; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
  .home-hero { min-height: 620px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 82px; }
  .header-inner > .nav, .header-inner > .header-phone { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 8px 3px 8px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-menu summary::after { content: '☰'; display: inline-block; font-size: 1.25rem; font-weight: 400; line-height: 1; }
  .mobile-menu[open] summary::after { content: '×'; font-size: 1.75rem; }
  .mobile-menu > nav, .mobile-menu > div, .mobile-menu > ul { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px var(--gutter) 22px; border-top: 1px solid var(--rule); background: var(--ivory); box-shadow: 0 14px 22px rgba(16, 46, 39, .12); list-style: none; }
  .mobile-menu nav a, .mobile-menu > div a, .mobile-menu > ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; font-weight: 700; text-decoration: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 30px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 7.3vw, 5.3rem); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  body { font-size: 15px; }
  .section { padding-block: 70px; }
  .section-heading { margin-bottom: 35px; }
  .home-hero { min-height: 0; }
  .home-hero::before { background: linear-gradient(180deg, rgba(13, 39, 31, .82) 0%, rgba(13, 39, 31, .68) 50%, rgba(13, 39, 31, .45) 100%); }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 25px; padding-block: 56px 48px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { max-width: 11ch; font-size: clamp(3.05rem, 11vw, 4.7rem); }
  .hero-copy > p:not(.eyebrow) { max-width: 38ch; }
  .form-card { width: 100%; padding: 26px; }
  .form-card h2, .form-card h3 { font-size: 2rem; }
  .split, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .split-media { aspect-ratio: 4 / 3; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid details:last-child { border-bottom: 1px solid var(--rule); }
  .page-intro { padding-block: 60px 70px; }
  .map-frame, .map-frame iframe, .map-frame img { min-height: 280px; }
  .site-footer { padding-block: 50px 85px; }
  .floating-cta { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 44px; padding: 11px 15px; font-size: .68rem; }
}

@media (max-width: 420px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy { font-size: 1.3rem; }
  .service-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-card h3 { margin-top: 18px; }
  .form-fields { grid-template-columns: 1fr; gap: 13px; }
  .field.full, .form-fields > .full { grid-column: auto; }
  .hero-grid { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .mobile-menu, .floating-cta { display: none !important; }
  .home-hero { color: var(--ink); background: var(--ivory); }
  .home-hero::before, .hero-picture { display: none; }
  .hero-copy > p:not(.eyebrow) { color: var(--ink); }
}

/* Shared shell and small editorial details. */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 12px; }
.header-phone { flex-direction: column; gap: 1px; line-height: 1.25; }
.header-phone span { font-size: .55rem; letter-spacing: .12em; }
.hero-actions, .callout-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.btn-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.btn-light:hover { color: var(--paper); background: var(--clay); border-color: var(--clay); }
.text-link { display: inline-block; font-size: .82rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.hero-local { margin-top: 26px; font-size: .8rem !important; }
.form-intro > p:not(.eyebrow) { color: var(--ink-muted); font-size: .86rem; line-height: 1.5; }
.form-intro > p a { color: var(--ink); }
.optional, .form-note { color: var(--ink-muted); font-weight: 400; }
.form-note { margin-top: 10px; font-size: .7rem; line-height: 1.45; }
.form-card input[type="hidden"] { display: none !important; }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-success { padding: 20px 0; }
.card-number { display: block; margin-top: 18px; color: var(--clay); font-size: .72rem; font-weight: 700; }
.card-link { font-size: .8rem; font-weight: 700; }
.service-card > a { display: block; text-decoration: none !important; }
.service-card > a:hover .card-link { color: var(--clay); }
.home-gallery .gallery-item span { position: absolute; inset: auto 0 0; padding: 35px 18px 12px; color: white; background: linear-gradient(transparent,rgba(16,46,39,.75)); font-size: .8rem; }
.contact-list { margin: 34px 0 0; }
.contact-list div { padding: 17px 0; border-top: 1px solid var(--rule); }
.contact-list dt { color: var(--clay); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-list dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: minmax(0,2fr) 1fr 1.4fr; gap: 45px; }
.footer-grid > div { min-width: 0; }
.footer-grid h2 { margin: 0 0 16px; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand) { display: block; margin-bottom: 10px; font-size: .86rem; overflow-wrap: anywhere; }
.footer-grid > div:first-child p { max-width: 310px; margin-top: 22px; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; margin-top: 42px; border-top: 1px solid rgba(248,245,237,.2); font-size: .74rem; color: rgba(248,245,237,.75); }
.footer-bottom div { display: flex; gap: 20px; }
.breadcrumb { padding-top: 20px; }
@media (max-width:700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1/-1; } .footer-bottom { flex-direction: column; } .mobile-menu summary span { display: none; } }

.gallery-grid .gallery-item > span { position: absolute; inset: auto 0 0; padding: 36px 18px 12px; color: #fff; background: linear-gradient(transparent, rgba(16,46,39,.78)); font-size: .8rem; }

.faq-grid { row-gap: 32px; }

/* Keep the live business map visible without an oversized empty panel. */
.map-frame { height: clamp(320px, 38vw, 520px); min-height: 0; aspect-ratio: auto; }
.map-frame iframe { height: 100%; min-height: 0; }
@media (max-width:700px) { .map-frame { height: 360px; } }

.floating-cta.form-overlap { visibility: hidden; pointer-events: none; }

.mobile-menu summary span { display: none; }

@media (max-width:700px) {
  .gallery-grid:not(.home-gallery) > .gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
