/* ============================================
   Down to Earth — Florist & Gift Shop
   Classic · Elegant · Refined
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #FDFBF7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.25;
    color: #1B2838;
}

a {
    color: #B8943E;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #96742E;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1B2838;
    color: #FDFBF7;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
}

.skip-link:focus {
    top: 0;
    color: #FDFBF7;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: #B8943E;
    color: #1B2838;
    border-color: #B8943E;
}

.btn--primary:hover {
    background-color: #A6832E;
    border-color: #A6832E;
    color: #1B2838;
}

.btn--outline {
    background-color: transparent;
    color: #1B2838;
    border-color: #1B2838;
}

.btn--outline:hover {
    background-color: #1B2838;
    color: #FDFBF7;
}

.btn--full {
    width: 100%;
}

/* ---------- SECTION HELPERS ---------- */
.section-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B8943E;
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: #1B2838;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #5a5a5a;
    max-width: 600px;
    line-height: 1.8;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(27, 40, 56, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(27, 40, 56, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1B2838;
}

.nav-logo__icon {
    width: 28px;
    height: 28px;
    color: #B8943E;
    flex-shrink: 0;
}

.nav-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-logo__tagline {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a7a7a;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #1B2838;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu__list {
    display: flex;
    gap: 32px;
}

.nav-menu__list a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1B2838;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}

.nav-menu__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #B8943E;
    transition: width 0.3s ease;
}

.nav-menu__list a:hover::after,
.nav-menu__list a:focus::after {
    width: 100%;
}

.nav-menu__list a:hover,
.nav-menu__list a:focus {
    color: #B8943E;
}

.nav-menu__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #1B2838;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(27, 40, 56, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu__cta:hover {
    background-color: #1B2838;
    color: #FDFBF7;
    border-color: #1B2838;
}

.nav-menu__cta svg {
    width: 14px;
    height: 14px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #FDFBF7;
    overflow: hidden;
    padding-top: 72px;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(253, 251, 247, 1) 0%,
        rgba(253, 251, 247, 0.97) 48%,
        rgba(253, 251, 247, 0.85) 60%,
        rgba(253, 251, 247, 0) 72%,
        rgba(253, 251, 247, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.hero__content {
    max-width: 540px;
}

.hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B8943E;
    margin-bottom: 20px;
}

.hero__headline {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1B2838;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #5a5a5a;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
}

.hero__highlights svg {
    width: 18px;
    height: 18px;
    color: #B8943E;
    flex-shrink: 0;
}

.hero__image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 7 / 9;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(184, 148, 62, 0.25);
    border-radius: 8px;
    pointer-events: none;
}

/* Decorative gold accent line */
.hero__image::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 80px;
    height: 80px;
    border-top: 2px solid #B8943E;
    border-right: 2px solid #B8943E;
    border-radius: 0 8px 0 0;
    z-index: 3;
    pointer-events: none;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 120px 0;
    background-color: #FDFBF7;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text .section-heading {
    margin-bottom: 28px;
}

.about__text p {
    color: #5a5a5a;
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about__image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 6 / 7.5;
    position: relative;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    border-bottom: 2px solid #B8943E;
    border-left: 2px solid #B8943E;
    border-radius: 0 0 0 8px;
    pointer-events: none;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 120px 0;
    background-color: #1B2838;
}

.services__header {
    text-align: center;
    margin-bottom: 64px;
}

.services .section-heading {
    color: #FDFBF7;
}

.services .section-subtitle {
    margin: 0 auto;
    color: rgba(253, 251, 247, 0.65);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: rgba(253, 251, 247, 0.04);
    border: 1px solid rgba(253, 251, 247, 0.08);
    border-radius: 8px;
    padding: 40px 32px;
    transition: all 0.35s ease;
}

.service-card:hover {
    background-color: rgba(253, 251, 247, 0.08);
    border-color: rgba(184, 148, 62, 0.3);
    transform: translateY(-4px);
}

.service-card__icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #B8943E;
}

.service-card__icon-wrap svg {
    width: 36px;
    height: 36px;
}

.service-card__title {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: #FDFBF7;
}

.service-card__title a {
    color: inherit;
}

.service-card__title a:hover {
    color: #B8943E;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(253, 251, 247, 0.6);
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 120px 0 96px;
    background-color: #FDFBF7;
}

.gallery__header {
    text-align: center;
    margin-bottom: 56px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.gallery__item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__item--large {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.gallery__item--wide {
    grid-column: 6 / 13;
    grid-row: 2 / 3;
}

.gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
    grid-column: span 3;
    grid-row: 1 / 3;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 120px 0;
    background-color: #F4F0E8;
}

.visit__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit__description {
    font-size: 1.05rem;
    color: #5a5a5a;
    line-height: 1.85;
    margin-bottom: 36px;
}

.visit__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit__info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #2c2c2c;
    font-size: 1rem;
    line-height: 1.6;
}

.visit__info-row svg {
    width: 20px;
    height: 20px;
    color: #B8943E;
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__info-row a {
    color: #2c2c2c;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 148, 62, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.visit__info-row a:hover {
    border-color: #B8943E;
    color: #96742E;
}

.visit__map {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 24px rgba(27, 40, 56, 0.1);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 120px 0;
    background-color: #FDFBF7;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__text .section-heading {
    margin-bottom: 20px;
}

.contact__text p {
    color: #5a5a5a;
    font-size: 1.02rem;
    line-height: 1.85;
}

.contact__form {
    background-color: #fff;
    border: 1px solid rgba(27, 40, 56, 0.08);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(27, 40, 56, 0.05);
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1B2838;
    margin-bottom: 8px;
}

.form-group__optional {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #999;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #2c2c2c;
    background-color: #FDFBF7;
    border: 1px solid rgba(27, 40, 56, 0.15);
    border-radius: 4px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #B8943E;
    box-shadow: 0 0 0 3px rgba(184, 148, 62, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-note {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 22px;
}

.contact__form-note.success {
    color: #2d6a4f;
}

.contact__form-note.error {
    color: #c0392b;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: #1B2838;
    color: rgba(253, 251, 247, 0.6);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    padding-bottom: 48px;
    align-items: start;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FDFBF7;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer__logo-icon {
    width: 24px;
    height: 24px;
    color: #B8943E;
}

.footer__logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(253, 251, 247, 0.45);
    margin: 0;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    color: rgba(253, 251, 247, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer__nav a:hover {
    color: #B8943E;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.footer__contact svg {
    width: 16px;
    height: 16px;
    color: #B8943E;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 4px;
}

.footer__contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.footer__contact a {
    color: rgba(253, 251, 247, 0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 148, 62, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.footer__contact a:hover {
    color: #B8943E;
    border-color: #B8943E;
}

.footer__bottom {
    border-top: 1px solid rgba(253, 251, 247, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(253, 251, 247, 0.35);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero__inner {
        gap: 32px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__grid {
        grid-template-rows: repeat(2, 220px);
    }

    .gallery__item--large {
        grid-column: 1 / 8;
        grid-row: 1 / 2;
    }

    .gallery__item--wide {
        grid-column: 8 / 13;
        grid-row: 1 / 2;
    }

    .gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
        grid-column: span 3;
        grid-row: 2 / 3;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px 24px 32px;
        border-bottom: 1px solid rgba(27, 40, 56, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu__list {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .nav-menu__list a {
        font-size: 15px;
        padding: 10px 0;
    }

    .nav-menu__cta {
        justify-content: center;
        width: 100%;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 0 60px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__highlights {
        align-items: center;
    }

    .hero__image {
        max-width: 480px;
        margin: 0 auto;
        aspect-ratio: 4 / 5;
    }

    .hero__image::before {
        display: none;
    }

    .about__inner,
    .visit__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer__nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer__contact p {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 72px;
    }

    .hero__headline {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery__item--large {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery__item--wide {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 1 / 1;
    }

    .contact__form {
        padding: 28px 20px;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .about,
    .services,
    .gallery,
    .visit,
    .contact {
        padding: 80px 0;
    }
}
