/* =========================================================
   Olivia Sanders – website styles
   Colours and fonts are set once here at the top.
   ========================================================= */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/eb-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/eb-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/eb-garamond-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #F5F5F5;          /* main background */
  --green: #A4A88C;       /* green sections */
  --text: #1C1C1C;        /* main text */
  --soft-text: #333333;   /* footer text */
  --dark-green: #2E3A26;  /* step numbers, "View recipes" */
  --accent: #5A6B4C;      /* short lines under headings */
  --line: #E3DDD4;        /* light borders */
  --green-line: #8C9077;  /* lines inside green sections */
  --field-line: #C9C0B3;  /* form boxes and button outlines */
  --white: #FFFFFF;
  --heading-font: 'Cormorant Garamond', Georgia, serif;
  --body-font: 'EB Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body-font); font-weight: 400; font-size: 18px; line-height: 1.7;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: #555555; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--dark-green); outline-offset: 3px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.wrap--form { max-width: 640px; }

/* Headings */
.h2 { font-family: var(--heading-font); font-weight: 400; font-size: clamp(34px, 6vw, 48px); line-height: 1.1; }
.lead-italic { font-family: var(--heading-font); font-style: italic; font-size: 22px; line-height: 1.4; }
.rule { width: 48px; height: 1px; background: var(--accent); }
.label { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.small { font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.centre { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px;
  border: 1px solid var(--field-line); background: var(--bg); color: var(--text);
  font-family: var(--body-font); font-size: 14px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { color: var(--text); background: #EDEBE6; }
.btn--white { background: var(--white); padding: 0 32px; }
.btn--white:hover { background: #F7F6F3; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); z-index: 40; }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; } }
.site-header .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.logo { font-family: var(--heading-font); font-size: 30px; font-weight: 500; letter-spacing: 0.02em; color: var(--text); text-decoration: none; line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 12px 0; }

/* Banner */
.banner { position: relative; width: 100%; aspect-ratio: 1179 / 745; max-height: 680px; background: #C9CCBC; display: flex; align-items: flex-end; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 24, 16, 0.5) 0%, rgba(20, 24, 16, 0.15) 35%, rgba(20, 24, 16, 0) 55%); }
.banner .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(28px, 4vw, 56px); }
.banner h1 { font-family: var(--heading-font); font-weight: 400; font-size: clamp(38px, 6vw, 72px); line-height: 1.05; color: var(--white); }
.banner p { margin-top: 12px; font-family: var(--heading-font); font-style: italic; font-size: clamp(20px, 2.6vw, 27px); color: var(--white); line-height: 1.4; }

/* Intro */
.intro { padding: clamp(56px, 8vw, 96px) 0 clamp(16px, 3vw, 32px); text-align: center; }
.intro p { font-family: var(--heading-font); font-size: clamp(24px, 4vw, 32px); line-height: 1.35; }

/* About */
.about { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); }
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(40px, 6vw, 80px); }
.about-photo { flex: 1 1 380px; min-width: 0; width: 100%; height: clamp(380px, 62vw, 680px); object-fit: cover; object-position: 55% 30%; background: #E6DFD5; }
.about-text { flex: 1 1 380px; }

/* Work with me */
.work { padding: clamp(56px, 8vw, 96px) 0; background: var(--green); }
.work .wrap { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 80px); }
.work-intro { flex: 1 1 320px; }
.package { margin-top: 12px; padding: clamp(22px, 4vw, 28px); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.package .label { color: var(--accent); }
.package-title { font-family: var(--heading-font); font-size: 28px; line-height: 1.2; }
.price { font-weight: 500; }
.price span { font-weight: 400; }
.steps { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--green-line); }
.steps li { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--green-line); }
.step-num { flex: 0 0 auto; font-family: var(--heading-font); font-size: 40px; line-height: 1; color: var(--dark-green); }
.step-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.steps h3 { font-family: var(--heading-font); font-weight: 500; font-size: 26px; line-height: 1.2; }
.step-body .btn { align-self: flex-start; margin-top: 8px; }

/* Testimonials */
.testimonials { padding: clamp(56px, 8vw, 96px) 0; }
.testimonials .wrap { display: flex; flex-direction: column; gap: 48px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 32px); background: var(--white); border: 1px solid var(--line); }
.quote blockquote { font-family: var(--heading-font); font-style: italic; font-size: 22px; line-height: 1.45; }

/* Yoga */
.yoga { padding: clamp(44px, 6vw, 64px) 0; background: var(--green); }
.yoga .wrap { max-width: 960px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.yoga-photo { flex: 0 0 260px; width: 260px; max-width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #DED6CA; }
.yoga-photo img { width: 100%; height: 100%; object-fit: cover; }
.yoga-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.yoga-text h2 { font-family: var(--heading-font); font-weight: 400; font-size: clamp(28px, 4.5vw, 36px); line-height: 1.15; }
.yoga-text .lead-italic { font-size: 20px; }
.yoga-text .btn { align-self: flex-start; }

/* Forms */
.contact { padding: clamp(56px, 8vw, 96px) 0; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field > label, .form legend { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.form legend { padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 0; background: var(--white);
  color: var(--text); font-family: var(--body-font); font-size: 17px;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1C1C' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form textarea { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.form-group { display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hidden-field { position: absolute; left: -9999px; }

/* Recipes */
.recipes { padding: clamp(56px, 8vw, 96px) 0; background: var(--green); }
.recipes .wrap { display: flex; flex-direction: column; gap: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--text); }
.card:hover { color: var(--text); }
.card-photo { aspect-ratio: 3 / 4; background: #E6DFD5; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }

.card-title { font-family: var(--heading-font); font-size: 28px; line-height: 1.1; }
.card .label { color: var(--dark-green); }

/* Footer */
.site-footer { background: var(--bg); color: var(--text); border-top: 1px solid #DDDAD6; padding: clamp(48px, 6vw, 72px) 0 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 56px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 80px); }
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; }
.footer-col--wide { flex: 2 1 260px; }
.footer-name { font-family: var(--heading-font); font-size: 30px; font-weight: 500; line-height: 1.2; }
.footer-col .label { font-weight: 500; }
.footer-col a, .footer-soft { color: var(--soft-text); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #D8D5D0; padding-top: 24px; font-size: 15px; color: var(--soft-text); }

/* Yoga pop-up */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-box { position: relative; width: 100%; max-width: 560px; background: var(--bg); padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); }
.modal h2 { font-family: var(--heading-font); font-weight: 400; font-size: clamp(32px, 5vw, 40px); line-height: 1.1; }
.modal .lead-italic { font-size: 20px; }
.modal .form textarea { min-height: 100px; }
body.modal-open { overflow: hidden; }

/* Simple text pages (recipes, privacy, cookies, thank you) */
.page { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 760px; }
.page h1 { font-family: var(--heading-font); font-weight: 400; font-size: clamp(38px, 6vw, 56px); line-height: 1.1; margin-bottom: 16px; }
.page h2 { font-family: var(--heading-font); font-weight: 400; font-size: clamp(28px, 4.5vw, 36px); line-height: 1.15; margin: 48px 0 12px; }
.page h3 { font-family: var(--heading-font); font-weight: 500; font-size: 24px; line-height: 1.25; margin: 28px 0 8px; }
.page p { margin: 0 0 14px; }
.page ul, .page ol { margin: 0 0 16px; padding-left: 1.3em; }
.page li { margin-bottom: 6px; }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 17px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.page th { font-weight: 500; }
.back { display: inline-block; margin-bottom: 28px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.recipe-jump { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 8px; }
.recipe-section { padding-top: 8px; }
.recipe-section h2 { border-top: 1px solid var(--line); padding-top: 40px; }
.recipe-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 8px 0 24px; background: #E6DFD5; }
.recipe { margin-top: 8px; }
.recipe .meta { font-style: italic; color: var(--soft-text); }
.soon { font-family: var(--heading-font); font-style: italic; font-size: 22px; color: var(--soft-text); }
.note { padding: 16px 20px; background: var(--white); border: 1px solid var(--line); font-size: 16px; }

/* Phones: taller banner and slightly deeper shading so the white title stays readable */
@media (max-width: 600px) {
  .banner { aspect-ratio: auto; min-height: 380px; }
  .banner::after { background: linear-gradient(to top, rgba(20, 24, 16, 0.62) 0%, rgba(20, 24, 16, 0.3) 45%, rgba(20, 24, 16, 0) 75%); }
}

/* Phones: centre the yoga section, header and form buttons */
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding-top: 20px; padding-bottom: 16px; }
  .nav { justify-content: center; gap: 0 20px; font-size: 13px; letter-spacing: 0.16em; }
  .nav a { padding: 8px 0; }
  .yoga .wrap { justify-content: center; }
  .yoga-photo { margin: 0 auto; }
  .yoga-text { text-align: center; align-items: center; }
  .yoga-text .btn { align-self: center; }
  .form-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .form-actions .btn { width: 100%; }
  .modal .form .btn { width: 100%; }
}

/* Section colours: Yoga pale, Get in touch green */
.yoga { background: var(--bg); }
.yoga .btn { background: var(--white); }
.yoga .btn:hover { background: #F7F6F3; }
.contact { background: var(--green); }
.contact a { color: var(--text); }
