/* What's With Wheat? — modern brand stylesheet */

:root {
    --wheat:       #e0a83d;
    --wheat-dark:  #c2871d;
    --brown:       #6e6253;   /* header band */
    --brown-dark:  #3b3026;   /* footer */
    --cream:       #f5f1e8;
    --grey:        #e9e8e6;   /* page background sections */
    --ink:         #2b2620;
    --ink-soft:    #5c554a;
    --line:        #e2dcce;
    --white:       #ffffff;
    --accent:      #29abe2;   /* top bar */
    --success:     #2f7a4d;
    --error:       #b3261e;
    --radius:      14px;
    --max:         1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--wheat-dark); }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Top bar -----------------------------------------------------------------*/
.topbar { background: var(--accent); color: #fff; font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__social { display: flex; gap: 0.5rem; }
.topbar__social a {
    width: 1.5rem; height: 1.5rem; display: grid; place-items: center; font-weight: 700;
    border: 1px solid rgba(255,255,255,.6); border-radius: 4px; text-transform: lowercase;
}

/* Header / nav ------------------------------------------------------------*/
.site-header { background: var(--brown); }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 1rem; position: relative;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: #fff; }
.brand__mark { font-size: 1.6rem; }
.brand__name { font-size: 1.3rem; font-weight: 800; letter-spacing: .3px; }
.brand__name em { font-style: italic; font-weight: 400; opacity: .9; }

.nav__toggle {
    display: none; background: none; color: #fff;
    border: 1px solid rgba(255,255,255,.5); border-radius: 8px;
    padding: 0.45rem 0.8rem; cursor: pointer; font-size: 0.95rem;
}
.nav__menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a { text-decoration: none; color: #efe9dd; font-weight: 600; font-size: 0.98rem; }
.nav__menu a[aria-current="page"], .nav__menu a:hover { color: var(--wheat); }

/* Hero --------------------------------------------------------------------*/
.hero {
    position: relative;
    min-height: 540px;
    display: grid; align-items: center;
    background: linear-gradient(180deg, #b98f3a, #8a6a28) center/cover no-repeat;
    background-image:
        linear-gradient(180deg, rgba(60,45,20,.35), rgba(60,45,20,.55)),
        url('../img/hero-wheat.jpg');
    color: #fff; text-align: center;
}
.hero__content { position: relative; padding: 5rem 1.25rem; max-width: 760px; margin: 0 auto; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 1rem; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero__lead { font-size: 1.2rem; margin: 0 auto 2rem; max-width: 620px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* Buttons -----------------------------------------------------------------*/
.btn {
    display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px;
    text-decoration: none; font-weight: 700; border: 2px solid transparent; cursor: pointer;
    font-size: 1rem; transition: background .15s, color .15s;
}
.btn--primary { background: var(--wheat); color: var(--ink); }
.btn--primary:hover { background: var(--wheat-dark); color: #fff; }
.btn--outline { border-color: #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Generic section helpers -------------------------------------------------*/
.section-title { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1.5rem; }
.intro, .featured, .trailer { padding: 3.5rem 0; }
.intro__text { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; color: var(--ink-soft); font-size: 1.1rem; }

/* Trailer -----------------------------------------------------------------*/
.trailer__frame { position: relative; padding-top: 56.25%; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Feature cards -----------------------------------------------------------*/
.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card h3 { margin-top: 0; font-size: 1.2rem; }

/* Quote -------------------------------------------------------------------*/
.quote { background: var(--grey); padding: 3.5rem 0; }
.quote__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.quote__mark { font-size: 4rem; color: var(--wheat); line-height: 0.4; display: inline-block; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin: 1rem 0; }
.quote cite { font-weight: 700; font-style: normal; }

/* Featured-in -------------------------------------------------------------*/
.featured__logos {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem;
    color: var(--ink-soft); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 0.85rem;
}

/* Follow ------------------------------------------------------------------*/
.follow { background: var(--brown); color: #fff; padding: 2.5rem 0; }
.follow__inner { text-align: center; }
.follow__inner h2 { margin: 0 0 1rem; }
.follow__icons { display: flex; gap: 0.75rem; justify-content: center; }
.follow__icon {
    width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
    border: 2px solid var(--wheat); border-radius: 8px; color: var(--wheat);
    text-decoration: none; font-weight: 800; text-transform: lowercase;
}
.follow__icon:hover { background: var(--wheat); color: var(--brown); }

/* Page heads --------------------------------------------------------------*/
.page-head { background: var(--grey); padding: 3rem 0 2.5rem; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.5rem; }
.page-head__sub { color: var(--wheat-dark); margin: 0.5rem 0; }
.page-head p { color: var(--ink-soft); max-width: 720px; margin: 0.5rem auto 0; }

/* Experts -----------------------------------------------------------------*/
.experts { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 3rem 0; }
.expert { display: flex; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.expert__photo { flex: 0 0 84px; }
.expert__photo img, .expert__initials {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
}
.expert__initials {
    display: grid; place-items: center; background: var(--wheat); color: #fff;
    font-size: 2rem; font-weight: 800;
}
.expert__name { margin: 0; font-size: 1.15rem; }
.expert__title { margin: 0.1rem 0 0.5rem; color: var(--wheat-dark); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.expert__bio { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Resources ---------------------------------------------------------------*/
.resources { columns: 2; column-gap: 3rem; margin: 3rem 0; }
.resources__group { break-inside: avoid; margin-bottom: 2rem; }
.resources__city { text-transform: uppercase; letter-spacing: .5px; color: var(--ink); border-bottom: 2px solid var(--wheat); padding-bottom: .35rem; }
.resources__list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.resources__list li { padding: 0.3rem 0; color: var(--ink-soft); }
.resources__list a { font-weight: 600; }

/* Contact -----------------------------------------------------------------*/
.contact { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.3fr; margin: 3rem 0; align-items: start; }
.contact__block { margin-bottom: 1.5rem; }
.contact__block h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.contact__block p { margin: 0; color: var(--ink-soft); }
.contact__note { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--ink-soft); font-size: 0.95rem; }

/* Forms -------------------------------------------------------------------*/
.form__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.form__row { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form__row label { font-weight: 600; margin-bottom: 0.35rem; }
.form input, .form textarea, .form select {
    font: inherit; padding: 0.75rem 0.85rem;
    border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--wheat); border-color: var(--wheat); }
.form__error { color: var(--error); font-size: 0.85rem; margin: 0.35rem 0 0; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

/* Alerts ------------------------------------------------------------------*/
.alert { border-radius: 8px; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; }
.alert--success { background: #e7f3ec; color: var(--success); border: 1px solid #bfe0cc; }
.alert--error { background: #fbe9e8; color: var(--error); border: 1px solid #f0c4c1; }

/* Prose (policy pages) ----------------------------------------------------*/
.prose { max-width: 820px; margin: 3rem auto; padding: 0 1.25rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.prose h2 { margin-top: 2rem; font-size: 1.3rem; }
.prose__address { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.25rem; }
.prose--center { text-align: center; }

.muted { color: var(--ink-soft); font-weight: 400; }

/* Footer ------------------------------------------------------------------*/
.site-footer { background: var(--brown-dark); color: #d9d2c4; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.site-footer__copy { margin: 0; }
.site-footer a { color: var(--wheat); text-decoration: none; }
.site-footer__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer__social { display: flex; gap: 0.5rem; }
.site-footer__social a {
    width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
    border: 1px solid var(--wheat); border-radius: 4px; text-transform: lowercase; font-weight: 700;
}

/* Responsive --------------------------------------------------------------*/
@media (max-width: 820px) {
    .contact { grid-template-columns: 1fr; }
    .resources { columns: 1; }
}
@media (max-width: 700px) {
    .nav__toggle { display: block; }
    .nav__menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
        flex-direction: column; gap: 0; background: var(--brown);
        padding: 0.5rem 1.25rem; box-shadow: 0 8px 16px rgba(0,0,0,.2);
    }
    .nav__menu.is-open { display: flex; }
    .nav__menu li { padding: 0.6rem 0; border-top: 1px solid rgba(255,255,255,.12); }
    .form__grid { grid-template-columns: 1fr; }
}
