/* ============================================================
   SUNDIAL DESIGN STUDIO — site styles (from the Sundial branding guide)
   Colors are set once here. Change a value and it updates everywhere.
   ============================================================ */

:root {
  --navy: #1A2939;
  --hannah-blue: #ABBEBC;
  --sage: #8B9784;
  --moss: #605A4C;
  --mahogany: #2E1915;
  --mustard: #B9712E;
  --white: #FFFFFF;
  --mist: #EEF2F1;           /* a whisper of Hannah Blue for soft sections */

  /* The guide uses Mr Eaves Modern. Jost is the closest free match.
     If you license Mr Eaves as a web font, put its name first here. */
  --sans: "Jost", "Mr Eaves Modern", "Futura", "Avenir Next", sans-serif;
  /* For the small lowercase accents, like "our vision" in the guide */
  --serif: "Cormorant Garamond", "Didot", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--mustard); }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

/* Headings: light, tracked capitals, as in the guide */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: inherit;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.1rem; letter-spacing: 0.14em; font-weight: 400; }
p { margin: 0 0 1.1em; max-width: 60ch; }

/* The small lowercase serif accent ("our vision") */
.accent {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--hannah-blue);
  display: block;
  margin-bottom: 0.4rem;
}
.accent.dark { color: var(--sage); }

.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { padding: 1.25rem 0; background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo img { height: 72px; width: auto; }
.nav { display: flex; gap: 2.25rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 400;
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--navy); color: var(--white);
  padding: 0.95rem 1.9rem;
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 400;
  border: 1px solid var(--navy); cursor: pointer; font-family: var(--sans);
}
.button:hover { background: var(--mahogany); border-color: var(--mahogany); color: var(--white); }
.button.light { background: transparent; color: var(--white); border-color: var(--white); }
.button.light:hover { background: var(--white); color: var(--navy); }

/* ---------- Home hero: navy panel + photo, like the guide's "our vision" page ---------- */
.hero { display: grid; grid-template-columns: 2fr 3fr; min-height: min(86vh, 820px); background: var(--navy); color: var(--white); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5.5rem); }
.hero-text p { color: var(--hannah-blue); }
.hero-text .button { align-self: flex-start; margin-top: 0.75rem; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section.tinted { background: var(--mist); }
.section-intro { margin-bottom: 3rem; }

/* Photo beside text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Services list */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4.5rem; }
.services li { border-top: 1px solid var(--hannah-blue); padding-top: 1.5rem; }
.services p { color: var(--moss); margin: 0; }

/* Portfolio mosaic, like the collage page in the guide */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }

/* Closing band on carved wood, echoing the door-panel page of the guide */
.cta-band {
  background: var(--mahogany) url("images/carved-wood.jpg") center / cover no-repeat;
  color: var(--white); padding: 7rem 0; text-align: center; position: relative;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(46, 25, 21, 0.45); }
.cta-band .wrap { position: relative; }
.cta-band .mark { height: 120px; width: auto; margin: 0 auto 2.25rem; }
.cta-band p { margin: 0 auto 2rem; color: var(--white); }

/* Page banners for inner pages */
.banner { height: clamp(260px, 42vw, 460px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* Services page */
.service-detail { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem 4rem; padding: 3rem 0; border-top: 1px solid var(--hannah-blue); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail ul { margin: 0; padding-left: 1.2rem; color: var(--moss); }

.svc-num { display: block; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage); font-weight: 400; margin-bottom: 0.6rem; }
.service-detail h2 { margin-bottom: 0.3rem; }
.service-detail ul li { margin-bottom: 0.35rem; }
.tinted .service-detail { border-top-color: var(--hannah-blue); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.phases li { border-top: 1px solid var(--navy); padding-top: 1.5rem; }
.phases p { color: var(--moss); margin: 0; }
.not-sure { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--hannah-blue); text-align: center; }
.not-sure p { margin-inline: auto; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 4rem; }
.form { display: grid; gap: 1.25rem; max-width: 560px; }
.form label { display: grid; gap: 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--navy);
  padding: 0.8rem 0.9rem; border: 1px solid var(--hannah-blue); border-radius: 0; background: var(--white);
}
.form textarea { min-height: 150px; resize: vertical; }
.contact aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--hannah-blue); padding: 3.5rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .seal { width: 110px; height: auto; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { height: 60vh; }
  .split, .contact, .service-detail { grid-template-columns: 1fr; }
  .services, .phases { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .section { padding: 4rem 0; }
  .logo img { height: 56px; }
  .nav { gap: 1.4rem; }
}
@media (max-width: 480px) {
  .mosaic .wide { grid-column: span 2; }
  .nav a { letter-spacing: 0.14em; }
}
