/* Reset basic styles */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --ink: #243244;
    --muted: #667085;
    --brand: #364E68;
    --brand-dark: #2B3D50;
    --accent: #F5B84B;
    --sky: #6AA6D8;
    --soft-blue: #F4F9FF;
    --soft-yellow: #FFF8E8;
    --card: #FFFFFF;
    --border: rgba(54, 78, 104, 0.13);
    --shadow: 0 18px 45px rgba(54, 78, 104, 0.11);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background:
        radial-gradient(circle at top right, rgba(106, 166, 216, 0.16), transparent 28rem),
        radial-gradient(circle at 8% 22%, rgba(245, 184, 75, 0.13), transparent 24rem),
        #fdfdfd;
    color: var(--ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(54, 78, 104, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
    z-index: -1;
}

h1, h2 {
    margin: 0;
    font-weight: 750;
    line-height: 1.18;
    color: var(--brand);
}

h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--muted);
}

main {
    padding: 3rem 1rem;
    max-width: 1080px;
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 2rem;
    align-items: center;
    max-width: 1160px;
    margin: 1rem auto 0;
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 0 0 34px 34px;
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.96), rgba(244, 249, 255, 0.98)),
        #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 999px;
    background: rgba(245, 184, 75, 0.17);
    inset-inline-start: -80px;
    bottom: -90px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(54, 78, 104, 0.08);
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.hero-content .subtitle {
    max-width: 620px;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    margin-bottom: 1.35rem;
    color: #526172;
}

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

.cta,
.submit-btn,
.contact-button,
.floating-order-button {
    -webkit-tap-highlight-color: transparent;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.35rem;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 750;
    box-shadow: 0 10px 22px rgba(54, 78, 104, 0.22);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.secondary-cta {
    background: #ffffff;
    color: var(--brand);
    border: 1px solid var(--border);
    box-shadow: none;
}

.secondary-cta:hover {
    background: var(--soft-blue);
    color: var(--brand);
}

.hero-image {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-image img {
    width: min(100%, 410px);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(36, 50, 68, 0.18);
    transform: rotate(-1.3deg);
    border: 6px solid #fff;
}

section {
    margin-bottom: 2rem;
}

.content-card,
.purchase-card,
.order-card,
.contact-card,
.gallery-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(54, 78, 104, 0.07);
}

.content-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.intro-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,248,232,0.72));
}

.audience-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,249,255,0.85));
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.audience-tags span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.section-header.compact {
    text-align: right;
    margin-bottom: 1rem;
}

.gallery-section {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.9rem;
}

#gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(36, 50, 68, 0.12);
    border: 4px solid #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(36, 50, 68, 0.17);
}

#gallery img:nth-child(1),
#gallery img:nth-child(2),
#gallery img:nth-child(3),
#gallery img:nth-child(4) {
    grid-column: span 3;
}

#gallery img:nth-child(5) {
    grid-column: span 2;
}

.purchase-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        radial-gradient(circle at top right, rgba(245, 184, 75, 0.22), transparent 32%),
        #fff;
}

.purchase-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.purchase-item {
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
}

.purchase-item span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.purchase-item strong {
    display: block;
    color: var(--brand);
    font-size: 1.35rem;
}

.purchase-item.wide {
    grid-column: span 2;
}

.purchase-item.wide strong {
    font-size: 1rem;
}

.order-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,249,255,0.86));
}

form {
    max-width: none;
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: #344054;
}

.form-group input,
.form-group select,
.form-group textarea,
.custom-select-trigger {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(54, 78, 104, 0.18);
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    color: var(--ink);
    transition: border 0.16s ease, box-shadow 0.16s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.custom-select-trigger:focus {
    outline: none;
    border-color: rgba(106, 166, 216, 0.8);
    box-shadow: 0 0 0 4px rgba(106, 166, 216, 0.16);
}

.form-group textarea {
    resize: vertical;
}

.pickup-info {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(245, 184, 75, 0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 248, 232, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: 0 10px 24px rgba(245, 184, 75, 0.1);
}

.pickup-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(54, 78, 104, 0.08);
}

.pickup-info strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--brand);
    font-weight: 850;
}

.pickup-info p {
    margin: 0;
    color: #526172;
    font-weight: 650;
}

.custom-select-group {
    position: relative;
    z-index: 20;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    min-height: 48px;
    cursor: pointer;
    text-align: right;
    color: #98a2b3;
}

.custom-select-trigger.has-value {
    color: var(--ink);
}

.custom-select-trigger.is-invalid {
    border-color: #b00020;
    box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.12);
}

.custom-select-trigger::after {
    content: "⌄";
    float: left;
    color: var(--brand);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 100;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(36, 50, 68, 0.18);
}

.custom-select-options.is-open {
    display: grid;
    grid-template-columns: 1fr;
}

.custom-select-options button {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: right;
}

.custom-select-options button:hover,
.custom-select-options button.is-selected {
    background: var(--soft-blue);
    color: var(--brand);
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
}

.checkbox input {
    width: auto;
}

.checkbox label {
    margin: 0;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(54, 78, 104, 0.22);
    transition: transform 0.18s ease, background 0.18s ease;
}

.submit-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.form-message {
    margin-top: 1rem;
    font-weight: bold;
}

.hidden {
    display: none;
}

.floating-order-button {
    position: fixed;
    inset-inline-end: 22px;
    top: 50%;
    transform: translateY(-50%) translateX(18px);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 14px 34px rgba(36, 50, 68, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.34);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, box-shadow 0.18s ease;
}

.floating-order-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.floating-order-button:hover {
    box-shadow: 0 18px 40px rgba(36, 50, 68, 0.33);
}

.floating-order-button::after {
    content: "›";
    display: inline-block;
    margin-inline-start: 0.5rem;
    font-size: 1.35rem;
    line-height: 1;
}

.contact-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(255, 223, 120, 0.28), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--shadow);
}

.contact-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: linear-gradient(180deg, var(--accent), var(--sky));
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-card h2 {
    color: var(--brand);
    font-size: 1.8rem;
}

.contact-card p {
    max-width: 620px;
    margin-bottom: 0;
    color: #56616c;
    font-size: 1.05rem;
}

.contact-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 210px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-button:hover {
    transform: translateY(-1px);
}

.contact-button.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(54, 78, 104, 0.22);
}

.contact-button.primary:hover {
    background: var(--brand-dark);
}

.contact-button.secondary {
    background: #ffffff;
    color: var(--brand);
    border: 1px solid rgba(54, 78, 104, 0.18);
    direction: ltr;
}

footer {
    padding: 1.5rem 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #667085;
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero,
    .purchase-card,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        margin: 0.5rem 1rem 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-header.compact {
        text-align: center;
    }

    .contact-card {
        text-align: center;
    }

    .contact-card::before {
        width: 100%;
        height: 6px;
        bottom: auto;
    }

    .contact-actions {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1.25rem 0.85rem;
    }

    section {
        margin-bottom: 1.25rem;
    }

    .hero-image img {
        transform: none;
        width: min(100%, 340px);
    }

    #gallery .gallery-grid {
        grid-template-columns: 1fr;
    }

    #gallery img,
    #gallery img:nth-child(n) {
        grid-column: auto;
        height: auto;
    }

    .form-grid,
    .purchase-items {
        grid-template-columns: 1fr;
    }

    .purchase-item.wide {
        grid-column: auto;
    }

    .floating-order-button {
        inset-inline-end: 14px;
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom));
        transform: translateY(16px);
        max-width: calc(100% - 28px);
        min-height: 48px;
        padding: 0.78rem 1.1rem;
    }

    .floating-order-button.is-visible {
        transform: translateY(0);
    }
}
