/*
Theme Name:   Sugar Hill Farm Child
Theme URI:    https://www.sugarhillfarmpa.com/
Description:  GeneratePress child theme recreating the original Sugar Hill Farm design.
              Full-viewport hero, transparent nav, Lato/Source Sans Pro typography,
              minimal organic aesthetic faithful to the original Squarespace layout.
Author:       Sugar Hill Farm
Template:     generatepress
Version:      1.0.0
Tags:         farm, organic, minimal, nature
Text Domain:  sugarhillfarm-child
*/

/* ─────────────────────────────────────────────
   1. GOOGLE FONTS (loaded via functions.php)
      Lato 100, 400 | Source Sans Pro 400
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   2. CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────── */
:root {
    --shf-white:       #ffffff;
    --shf-black:       #1a1a1a;
    --shf-dark:        #2c2c2c;
    --shf-mid:         #555555;
    --shf-light:       #f8f7f4;
    --shf-border:      rgba(255, 255, 255, 0.75);
    --shf-overlay:     rgba(0, 0, 0, 0.22);
    --shf-hero-text:   #ffffff;
    --shf-nav-height:  70px;
    --shf-font-main:   'Lato', sans-serif;
    --shf-font-body:   'Source Sans Pro', sans-serif;
    --shf-transition:  0.25s ease;
}

/* ─────────────────────────────────────────────
   3. GLOBAL RESETS & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--shf-font-body);
    font-weight: 400;
    color: var(--shf-dark);
    background: var(--shf-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--shf-dark);
    text-decoration: none;
    transition: opacity var(--shf-transition);
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────────
   4. TYPOGRAPHY
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--shf-font-main);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--shf-dark);
    margin-top: 0;
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

p {
    font-family: var(--shf-font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--shf-mid);
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 3rem 0;
}

/* ─────────────────────────────────────────────
   5. GENERATEPRESS STRUCTURE OVERRIDES
   ───────────────────────────────────────────── */

/* Remove default GP spacing */
.inside-header {
    padding: 0 !important;
}

.site-header {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Make the #page wrapper flush */
#page {
    overflow-x: hidden;
}

/* Remove GP's default content padding on front page */
.home .content-area,
.home .site-main {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.home .entry-content {
    margin: 0;
    padding: 0;
}

/* Remove default GP article margins on front page */
.home article.page {
    margin: 0;
    padding: 0;
}

/* ─────────────────────────────────────────────
   6. SITE HEADER — TRANSPARENT / OVERLAY NAV
   ───────────────────────────────────────────── */

/* On the homepage, the header overlays the hero */
.home .site-header,
.home #site-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
}

/* Subtle gradient so nav text is legible over any photo */
.home .site-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Inner pages: solid header */
body:not(.home) .site-header {
    background: var(--shf-white) !important;
    border-bottom: 1px solid #eee !important;
    position: relative;
}

/* ─────────────────────────────────────────────
   7. SITE LOGO / TITLE AREA
   ───────────────────────────────────────────── */
.site-title {
    font-family: var(--shf-font-main);
    font-weight: 100;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home .site-title a,
.home .site-title a:visited {
    color: var(--shf-white) !important;
}

body:not(.home) .site-title a {
    color: var(--shf-dark) !important;
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

/* ─────────────────────────────────────────────
   8. PRIMARY NAVIGATION
   ───────────────────────────────────────────── */

/* GP nav wrapper */
.main-navigation {
    height: var(--shf-nav-height);
    display: flex;
    align-items: center;
}

/* Nav links — homepage (white on transparent) */
.home .main-navigation .main-nav ul li a {
    font-family: var(--shf-font-main);
    font-weight: 400;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--shf-white) !important;
    padding: 0 14px;
    transition: opacity var(--shf-transition);
}

.home .main-navigation .main-nav ul li a:hover {
    opacity: 0.65;
}

/* Nav links — inner pages (dark) */
body:not(.home) .main-navigation .main-nav ul li a {
    font-family: var(--shf-font-main);
    font-weight: 400;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--shf-dark) !important;
    padding: 0 14px;
    transition: opacity var(--shf-transition);
}

body:not(.home) .main-navigation .main-nav ul li a:hover {
    opacity: 0.5;
}

/* Active nav item */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-page-ancestor > a {
    opacity: 0.55;
}

/* Dropdown menu */
.main-navigation .main-nav ul ul {
    background: rgba(255,255,255,0.97) !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    border-radius: 2px;
    min-width: 180px;
}

.main-navigation .main-nav ul ul li a {
    color: var(--shf-dark) !important;
    font-size: 0.68rem !important;
    padding: 10px 18px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.main-navigation .main-nav ul ul li:last-child a {
    border-bottom: none !important;
}

/* ─────────────────────────────────────────────
   9. MOBILE MENU TOGGLE
   ───────────────────────────────────────────── */
.home .menu-toggle {
    color: var(--shf-white) !important;
    background: transparent !important;
    border-color: rgba(255,255,255,0.6) !important;
}

body:not(.home) .menu-toggle {
    color: var(--shf-dark) !important;
}

/* ─────────────────────────────────────────────
   10. HERO SECTION (front-page.php)
   ───────────────────────────────────────────── */
.shf-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #3d4a2e; /* fallback while image loads */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay over hero image */
.shf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--shf-overlay);
    z-index: 1;
}

.shf-hero__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 120px 60px 80px;
    color: var(--shf-white);
}

.shf-hero__title {
    font-family: var(--shf-font-main);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--shf-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.shf-hero__text {
    font-family: var(--shf-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    max-width: 480px;
}

.shf-hero__actions {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   11. BUTTONS
   ───────────────────────────────────────────── */

/* Primary outlined button (white, on hero) */
.shf-btn {
    display: inline-block;
    font-family: var(--shf-font-main);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 14px 28px;
    border: 1.5px solid var(--shf-white);
    color: var(--shf-white);
    background: transparent;
    cursor: pointer;
    transition: background var(--shf-transition), color var(--shf-transition);
    text-decoration: none;
}

.shf-btn:hover {
    background: var(--shf-white);
    color: var(--shf-dark);
    opacity: 1;
}

/* Dark button for inner pages */
.shf-btn--dark {
    border-color: var(--shf-dark);
    color: var(--shf-dark);
}

.shf-btn--dark:hover {
    background: var(--shf-dark);
    color: var(--shf-white);
    opacity: 1;
}

/* ─────────────────────────────────────────────
   12. SOCIAL ICON BUTTONS (hero area)
   ───────────────────────────────────────────── */
.shf-social-icons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shf-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    color: var(--shf-white);
    transition: background var(--shf-transition), border-color var(--shf-transition);
}

.shf-social-icons a:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--shf-white);
    opacity: 1;
}

.shf-social-icons svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ─────────────────────────────────────────────
   13. INNER PAGE LAYOUT
   ───────────────────────────────────────────── */
body:not(.home) .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

/* Page hero banner (used on inner pages) */
.shf-page-banner {
    width: 100%;
    height: 280px;
    background-color: #3d4a2e;
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: flex-end;
    padding: 40px 60px;
    position: relative;
}

.shf-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.shf-page-banner h1 {
    position: relative;
    z-index: 1;
    color: var(--shf-white);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 0;
}

/* ─────────────────────────────────────────────
   14. TWO-COLUMN CONTENT BLOCK (About page style)
   ───────────────────────────────────────────── */
.shf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin: 3rem 0;
}

.shf-two-col img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.shf-two-col__text h1,
.shf-two-col__text h2 {
    font-family: var(--shf-font-main);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

/* Three-column team grid (Behind the Food section) */
.shf-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 2rem 0;
}

.shf-team-card h2 {
    font-family: var(--shf-font-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.shf-team-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.shf-team-card p {
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ─────────────────────────────────────────────
   15. FOOTER
   ───────────────────────────────────────────── */
.site-footer {
    background: var(--shf-light);
    border-top: 1px solid #e8e4df;
    padding: 50px 40px !important;
    text-align: center;
}

.site-footer .inside-footer {
    max-width: 900px;
    margin: 0 auto;
}

.shf-footer-logo {
    font-family: var(--shf-font-main);
    font-weight: 100;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--shf-dark);
    margin-bottom: 0.75rem;
}

.shf-footer-address {
    font-family: var(--shf-font-body);
    font-size: 0.85rem;
    color: var(--shf-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.shf-footer-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.shf-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: var(--shf-mid);
    transition: border-color var(--shf-transition), color var(--shf-transition);
}

.shf-footer-social a:hover {
    border-color: var(--shf-dark);
    color: var(--shf-dark);
    opacity: 1;
}

.shf-footer-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.site-footer .copyright-bar {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.05em;
    border-top: 1px solid #e0dbd5;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────
   16. RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .shf-hero__content {
        padding: 100px 30px 60px;
    }

    .shf-hero__title {
        font-size: 2.5rem;
    }

    .shf-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .shf-two-col img {
        height: 260px;
    }

    .shf-team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body:not(.home) .site-main {
        padding: 40px 20px 60px;
    }

    .shf-page-banner {
        height: 200px;
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .shf-hero__content {
        padding: 90px 20px 50px;
    }

    .shf-hero__title {
        font-size: 2rem;
    }

    .shf-btn {
        padding: 12px 22px;
        font-size: 0.65rem;
    }
}
