:root {
    --ink: #171717;
    --muted: #656565;
    --paper: #fffdf8;
    --line: #e8e1d6;
    --accent: #2f6f5e;
    --accent-dark: #1e4b40;
    --gold: #c18b38;
    --blue: #335c8a;
    --rose: #a84747;
    --shadow: 0 24px 70px rgba(23, 23, 23, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f7f4ee;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }

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

.sample-shell {
    min-height: 100vh;
    background: var(--paper);
}

.sample-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 850;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.sample-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.sample-nav a {
    text-decoration: none;
}

.back-link {
    color: var(--accent);
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
    gap: clamp(32px, 6vw, 72px);
    padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px);
    align-items: center;
}

.reveal {
    animation: riseIn 0.75s ease both;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    color: var(--accent);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

p {
    margin: 0 0 18px;
    color: var(--muted);
}

.hero p {
    font-size: 1.08rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.photo-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.photo-card img {
    aspect-ratio: 4 / 5;
    height: 100%;
    object-fit: cover;
    width: 100%;
    transition: transform 0.45s ease;
}

.photo-card:hover img {
    transform: scale(1.04);
}

.photo-note {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    bottom: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    left: 22px;
    padding: 18px;
    position: absolute;
    right: 22px;
}

.visual-lines span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: #e6e1d8;
    margin-bottom: 12px;
}

.visual-lines span:nth-child(1) { width: 42%; background: var(--accent); }
.visual-lines span:nth-child(2) { width: 82%; }
.visual-lines span:nth-child(3) { width: 68%; }

.section {
    padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
}

.menu-list,
.service-list {
    display: grid;
    gap: 14px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.list-row span:last-child {
    color: var(--accent);
    font-weight: 850;
}

.feature-image {
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feature-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.footer-cta {
    padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
    background: var(--ink);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.footer-cta p { color: #c8c8c8; }

.directory {
    min-height: 100vh;
    padding: clamp(28px, 5vw, 64px);
    background: radial-gradient(circle at 80% 0%, rgba(47, 111, 94, 0.14), transparent 32%), #f7f4ee;
}

.directory-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: clamp(38px, 7vw, 72px);
}

.directory header {
    max-width: 820px;
}

.directory h1 {
    font-size: clamp(2.2rem, 6vw, 4.7rem);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.template-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.template-preview {
    min-height: 230px;
    overflow: hidden;
}

.template-preview img {
    height: 230px;
    object-fit: cover;
    transition: transform 0.45s ease;
    width: 100%;
}

.template-card:hover img {
    transform: scale(1.05);
}

.template-card-content {
    padding: 24px;
}

.template-card h2 {
    font-size: 1.35rem;
}

.restaurant-theme { --accent: #8a3b25; --accent-dark: #5d291a; }
.personal-theme { --accent: var(--blue); --accent-dark: #253f5e; }
.professional-theme { --accent: #24564d; --accent-dark: #173a34; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 850px) {
    .hero,
    .split,
    .footer-cta {
        grid-template-columns: 1fr;
    }

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

    .sample-nav,
    .directory-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .sample-nav ul {
        flex-wrap: wrap;
    }
}


.template-card:nth-child(1) { animation-delay: 0.04s; }
.template-card:nth-child(2) { animation-delay: 0.12s; }
.template-card:nth-child(3) { animation-delay: 0.2s; }

.sample-nav a,
.template-card,
.card,
.button {
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
    .template-card:active,
    .card:active,
    .button:active {
        transform: scale(0.98);
    }
}

@media (max-width: 640px) {
    body {
        background: #fffaf2;
    }

    .sample-nav {
        gap: 14px;
        padding: 14px 16px 12px;
    }

    .brand {
        font-size: 0.98rem;
    }

    .sample-nav ul {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .sample-nav li {
        min-width: 0;
    }

    .sample-nav li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .sample-nav a:not(.brand) {
        align-items: center;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid var(--line);
        border-radius: 999px;
        display: flex;
        font-size: 0.88rem;
        font-weight: 750;
        justify-content: center;
        min-height: 42px;
        padding: 0 12px;
        text-align: center;
    }

    .back-link {
        background: rgba(47, 111, 94, 0.1) !important;
        border-color: rgba(47, 111, 94, 0.22) !important;
    }

    .directory {
        padding: 24px 14px 40px;
    }

    .directory-top {
        gap: 18px;
        margin-bottom: 28px;
    }

    .directory h1,
    h1 {
        font-size: 2.35rem;
        letter-spacing: -0.035em;
        line-height: 1;
    }

    h2 {
        font-size: 1.75rem;
        letter-spacing: -0.025em;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    p,
    .hero p {
        font-size: 1rem;
    }

    .button {
        min-height: 48px;
        width: 100%;
    }

    .hero {
        gap: 28px;
        padding: 42px 16px 54px;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
        margin-top: 22px;
    }

    .photo-card {
        border-radius: 22px;
    }

    .photo-card img {
        aspect-ratio: 1 / 1;
    }

    .photo-note {
        border-radius: 0;
        border-width: 1px 0 0;
        box-shadow: none;
        inset: auto;
        position: relative;
    }

    .section {
        padding: 46px 16px;
    }

    .grid-3 {
        gap: 14px;
    }

    .card {
        border-radius: 16px;
        padding: 20px;
    }

    .split {
        gap: 20px;
    }

    .list-row {
        align-items: flex-start;
        display: grid;
        gap: 6px;
        padding: 16px 0;
    }

    .feature-image {
        border-radius: 18px;
    }

    .footer-cta {
        align-items: stretch;
        display: grid;
        gap: 18px;
        padding: 42px 16px;
    }

    .template-grid {
        gap: 16px;
    }

    .template-card {
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(23, 23, 23, 0.08);
    }

    .template-preview,
    .template-preview img {
        height: 190px;
        min-height: 190px;
    }

    .template-card-content {
        padding: 20px;
    }

    .template-card h2 {
        font-size: 1.28rem;
    }

    .reveal,
    .template-card {
        animation-duration: 0.58s;
    }
}

@media (max-width: 380px) {
    .directory h1,
    h1 {
        font-size: 2.05rem;
    }

    .sample-nav ul {
        grid-template-columns: 1fr;
    }

    .template-preview,
    .template-preview img {
        height: 168px;
        min-height: 168px;
    }
}
