/* robcaskie.com — one stylesheet for the whole site. Mobile first. */

@font-face { font-family: "Montagu Slab"; src: url("../fonts/montaguslab.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1f1a17;
  --text: #4a4542;
  --muted: #7a726c;
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --gold: #edb059;
  --gold-deep: #b9802c;
  --slate: #5b6e78;
  --brown: #4b3d31;
  --rust: #7e4d36;
  --serif: "Montagu Slab", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-deep); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 .8rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .97); border-bottom: 1px solid rgba(31, 26, 23, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo img { width: 170px; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; font: 600 .95rem var(--sans); color: var(--ink); padding: .6rem 0; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid rgba(31, 26, 23, .08); padding: .5rem var(--gutter) 1.25rem; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .7rem 0; font: 600 1rem var(--sans); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--gold-deep); }
@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; padding: 0; background: none; }
  .site-nav ul { display: flex; gap: 2.2rem; }
  .site-nav a { padding: .4rem 0; font-size: .95rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--gold); }
}

/* Buttons */
.btn { display: inline-block; font: 600 .95rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; padding: 1rem 1.6rem; border-radius: 2px; background: var(--gold); color: var(--ink); border: 2px solid var(--gold); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: inherit; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero: full-bleed photograph */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 13, .15) 0%, rgba(20, 16, 13, .35) 40%, rgba(20, 16, 13, .85) 100%), linear-gradient(90deg, rgba(20, 16, 13, .45) 0%, rgba(20, 16, 13, 0) 65%); }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.hero .wrap { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: clamp(3rem, 9vh, 6rem); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .3em; }
.hero .lead { font: 500 clamp(1.15rem, 2.4vw, 1.5rem)/1.5 var(--serif); max-width: 40ch; color: rgba(255, 255, 255, .92); }
.hero.short { min-height: min(62vh, 620px); }
.hero.focus-top picture img { object-position: 50% 20%; }

/* Text sections */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section.cream { background: var(--cream); }
.prose { max-width: 68ch; }
.prose.centre { margin: 0 auto; text-align: center; }
.intro p:first-of-type { font: 500 clamp(1.15rem, 2.2vw, 1.35rem)/1.6 var(--serif); color: var(--ink); }

/* Image band: full-width photograph with coloured overlay and text */
.band { position: relative; color: #fff; overflow: hidden; background: var(--brown); }
.band picture, .band picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--band, rgba(75, 61, 49, .92)) 0%, var(--band, rgba(75, 61, 49, .92)) 35%, rgba(0, 0, 0, .15) 100%); }
.band .wrap { position: relative; z-index: 2; padding-top: clamp(5rem, 14vw, 9rem); padding-bottom: clamp(5rem, 14vw, 9rem); }
.band h2, .band h3 { color: #fff; }
.band .prose { max-width: 34rem; }
.band.slate { --band: rgba(56, 70, 78, .9); }
.band.rust { --band: rgba(98, 58, 39, .9); }
@media (max-width: 819px) { .band::before { background: linear-gradient(180deg, var(--band, rgba(75, 61, 49, .9)) 0%, var(--band, rgba(75, 61, 49, .82)) 100%); } }

/* Split: image beside text */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split figure { margin: 0; }
.split figure img { width: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.portrait { grid-template-columns: 5fr 7fr; }
  .split.reverse > :first-child { order: 2; }
}

/* Service cards (home teaser) */
.cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: block; min-height: 340px; overflow: hidden; color: #fff; text-decoration: none; background: var(--brown); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 13, 0) 30%, rgba(20, 16, 13, .85) 100%); }
.card span { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; z-index: 1; font: 700 1.3rem/1.25 var(--serif); }
.card span small { display: block; font: 400 .9rem/1.5 var(--sans); margin-top: .35rem; color: rgba(255, 255, 255, .85); }
.card:hover img { transform: scale(1.05); }
.card:hover { color: #fff; }

/* Services list */
.service { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid rgba(31, 26, 23, .08); }
.service:first-of-type { border-top: 0; }
.service figure img { aspect-ratio: 16 / 10; }

/* Testimonials */
.quotes { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; background: var(--paper); padding: 2rem 2rem 1.8rem; border-left: 3px solid var(--gold); }
.quote p { font: italic 400 1.05rem/1.75 var(--sans); color: var(--ink); margin: 0; }
.quote p::before { content: "\201C"; font: 700 2.6rem/0 var(--serif); color: var(--gold); vertical-align: -.75rem; margin-right: .2rem; }

/* Contact strip (every page) */
.cta { background: var(--ink); color: rgba(255, 255, 255, .85); text-align: center; }
.cta h2 { color: #fff; }
.cta .prose { margin: 0 auto; }
.cta a.mail { color: var(--gold); font-weight: 600; }

/* Social links */
.social { display: flex; gap: .8rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.cta .social, .footer-social { justify-content: center; }
.social a { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social.dark a { border-color: rgba(31, 26, 23, .25); color: var(--ink); }

/* Footer */
.site-footer { background: #15110e; color: rgba(255, 255, 255, .6); font-size: .9rem; padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; }

/* Brochure links */
.downloads { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.downloads a { font-weight: 600; }

/* Contact form */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form label { display: block; font: 600 .9rem var(--sans); color: var(--ink); margin-bottom: .35rem; }
.form .hint { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfc6bb; border-radius: 2px; padding: .8rem .9rem; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-deep); outline: 2px solid rgba(237, 176, 89, .4); outline-offset: 0; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.form .consent input { width: auto; margin-top: .3rem; }
.form .consent label { font-weight: 400; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: var(--cream); margin-bottom: 1.5rem; }

/* Small print pages */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
