/* Portage Pie - standalone styles for indexSUGGEST.html */

:root {
    --red: #a52a24;
    --red-dark: #7f1d19;
    --gold: #e0b04a;
    --sky: #d2e2e1;
    --cream: #fbf6ec;
    --crust: #f1e2c4;
    --ink: #2b211c;
    --muted: #6b5d55;
    --dark: #1e1916;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(43, 33, 28, 0.12);
    --font-head: "Roboto Slab", Georgia, serif;
    --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
}

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

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--red);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--red);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* Buttons & links */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 2px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(165, 42, 36, 0.3);
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    color: var(--red);
}

.btn-outline:hover {
    background: #fff;
    color: var(--red-dark);
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.75rem;
}

.fb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #1877f2;
    text-decoration: none;
}

.fb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1877f2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fb-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.fb-link:hover .fb-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.fb-link:hover {
    text-decoration: underline;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--red-dark);
}

/* Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.25s;
}

.nav-scrolled {
    box-shadow: 0 4px 18px rgba(43, 33, 28, 0.12);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Hero */

.hero {
    --pie-width: min(1000px, 100vw);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background-color: var(--sky);
    background-image: url("../assets/img/mmmpie.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: var(--pie-width) auto;
    /* Tall enough to show the whole pie (800x411) plus a strip of sky above it */
    min-height: calc(var(--pie-width) * 0.514 + 3rem);
    padding: 2rem 1.25rem 2.5rem;
}

.hero-content {
    max-width: 640px;
    animation: rise 0.8s ease-out both;
}

.hero-logo {
    width: min(440px, 85%);
    margin: 0 auto 1rem;
    filter: drop-shadow(6px 8px 12px rgba(0, 0, 0, 0.55));
}

/* A gold notched ribbon, like a bakery sign, picking up the logo's gold outline */
.hero-tagline {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(0.95rem, 2.4vw, 1.3rem);
    letter-spacing: 0.02em;
    color: #3a2a22;
    background: linear-gradient(to bottom, #f0c463, #d9a03a);
    padding: 0.45rem 2.25rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 0.9rem) 50%, 100% 100%, 0 100%, 0.9rem 50%);
    margin-bottom: 1.25rem;
}

.hero .btn {
    box-shadow: 0 6px 16px rgba(43, 33, 28, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

/* Sections */

.section {
    padding: 5.5rem 0;
}

.section-cream {
    background: var(--cream);
}

.section-dark {
    background: var(--dark);
    color: #efe7dd;
}

.section-dark h2 {
    color: #fff;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-reverse .split-media {
    order: -1;
}

.split-text p {
    color: inherit;
}

.welcome .split-text p:not(.eyebrow) {
    color: var(--muted);
}

.photo {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.photo-tilt {
    transform: rotate(2deg);
    border: 10px solid #fff;
    transition: transform 0.4s;
}

.photo-tilt:hover {
    transform: rotate(0) scale(1.02);
}

.section-dark .photo {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card-photo {
    position: relative;
    margin: -2rem -2rem 1.5rem;
    border-radius: calc(var(--radius) - 5px) calc(var(--radius) - 5px) 0 0;
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 40% 55%;
}

.closure-notice {
    background: #fdf3dc;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.closure-notice.is-current {
    background: #f7e3e1;
    border-left-color: var(--red);
}

.closure-notice p {
    margin: 0;
}

.closure-notice p + p {
    margin-top: 0.4rem;
}

.hours li.hours-loading,
.hours li.hours-error {
    justify-content: center;
    color: var(--muted);
    font-style: italic;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--red);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-title-row h3 {
    margin: 0;
}

.status {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.status.is-open {
    background: #e2f3e4;
    color: #22693a;
}

.status.is-closed {
    background: #f7e3e1;
    color: var(--red-dark);
}

.hours {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px dashed var(--crust);
}

.hours li span:first-child {
    font-weight: 700;
}

.hours li.today {
    background: var(--cream);
    border-radius: 8px;
    border-bottom-color: transparent;
    box-shadow: inset 4px 0 0 var(--gold);
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--muted);
    margin: 0;
}

address {
    font-style: normal;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    aspect-ratio: 16 / 9;
    background: var(--sky);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Rolling board page */

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--red);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.board-hero {
    background: linear-gradient(to bottom, var(--sky), #fff);
}

.board-hero .split-text p:not(.eyebrow) {
    color: var(--muted);
}

.board-hero .hero-actions {
    justify-content: flex-start;
}

.board-hero .eyebrow,
.section-cream .eyebrow,
#buy .eyebrow {
    color: var(--red);
}

.price-line {
    font-size: 1.05rem;
    margin: 1.5rem 0;
}

.price-line strong {
    color: var(--red);
    font-family: var(--font-head);
    font-size: 1.4rem;
}

.section-sub {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.feature p {
    color: var(--muted);
    margin: 0;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--crust);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.video-wrap video {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 70vh;
    background: #000;
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.sizes {
    border: 0;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.size {
    position: relative;
    cursor: pointer;
}

.size input {
    position: absolute;
    opacity: 0;
}

.size-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 2px solid var(--crust);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.size:hover .size-card {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.size input:checked + .size-card {
    border-color: var(--red);
    background: var(--cream);
    box-shadow: 0 0 0 3px rgba(165, 42, 36, 0.15), var(--shadow);
}

.size input:checked + .size-card::after {
    content: "\2713";
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    line-height: 1.75rem;
}

.size input:focus-visible + .size-card {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.size-name {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
}

.size-price {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
    margin: 0.25rem 0 1rem;
}

.size-fit {
    font-size: 0.95rem;
    color: var(--muted);
    border-top: 1px dashed var(--crust);
    padding-top: 1rem;
    width: 100%;
}

.fit-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.buy-actions {
    text-align: center;
}

.buy-actions .note {
    margin-top: 0.75rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
}

.board-stack {
    max-width: 720px;
    margin: 4rem auto 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Footer */

.footer {
    background: var(--red);
    color: #fbe9e4;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 180px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer p {
    margin: 0;
}

.footer a {
    color: #fff;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.social:hover {
    background: rgba(255, 255, 255, 0.3);
}

.social svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */

@media (max-width: 860px) {
    .nav-inner {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .split,
    .cards {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .split-reverse .split-media {
        order: 0;
    }

    .split-text {
        text-align: center;
    }

    .link-row,
    .board-hero .hero-actions {
        justify-content: center;
    }

    .features,
    .sizes {
        grid-template-columns: 1fr;
    }

    .size-card {
        padding: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Scale the pie up on small screens so there's room to sit the logo on it */
    .hero {
        --pie-width: 170vw;
    }
}

@media (max-width: 560px) {
    .nav-inner {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
    }

    .nav-links {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }

    .card-photo {
        margin: -1.5rem -1.5rem 1.25rem;
    }

    .nav-logo img {
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
