* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dusty-pink: #D4A5A5;
    --terracotta: #C85A3A;
    --charcoal: #3A3A3A;
    --cream: #F5F0EB;
    --gold: #D4AF37;
    --white: #FFFFFF;
}

body {
    font-family: 'Cormorant', serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    font-size: 16px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--cream);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dusty-pink);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--dusty-pink);
}

/* Page wrapper */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 60px;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.1) 0%, rgba(245, 240, 235, 0.5) 100%);
    padding: 100px 40px;
    text-align: center;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.arch-icon {
    font-size: 80px;
    margin-bottom: 30px;
    color: var(--dusty-pink);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: var(--dusty-pink);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero .tagline {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--terracotta);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero p {
    font-family: 'Cormorant', serif;
    font-size: 18px;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-button {
    background-color: var(--dusty-pink);
    color: white;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--terracotta);
    transform: translateY(-2px);
}

/* Brand Story Section */
.story-section {
    padding: 80px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.story-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: var(--dusty-pink);
    margin-bottom: 30px;
    text-align: center;
}

.story-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.story-section em {
    color: var(--terracotta);
    font-style: italic;
}

/* Values Section */
.values {
    background-color: rgba(212, 165, 165, 0.05);
    padding: 60px 40px;
    margin: 40px 0;
}

.values h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--charcoal);
    margin-bottom: 40px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 30px;
}

.value-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--dusty-pink);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.6;
}

/* Product Catalogue */
.catalogue {
    padding: 80px 40px;
}

.catalogue-header {
    text-align: center;
    margin-bottom: 60px;
}

.catalogue-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--dusty-pink);
    margin-bottom: 20px;
}

.catalogue-header p {
    font-size: 18px;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border: 2px solid var(--dusty-pink);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 165, 0.2);
}

.product-image {
    background: linear-gradient(135deg, var(--dusty-pink) 0%, var(--terracotta) 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    font-family: 'Playfair Display', serif;
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dusty-pink);
    margin-bottom: 15px;
}

.product-content p {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 15px;
}

.product-specs {
    background-color: rgba(245, 240, 235, 0.5);
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--dusty-pink);
}

.product-specs p {
    font-size: 14px;
    margin: 5px 0;
}

.price {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--terracotta);
    margin-top: 15px;
}

.product-cta {
    background-color: var(--dusty-pink);
    color: white;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.product-cta:hover {
    background-color: var(--terracotta);
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: white;
    padding: 40px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin: 20px 0;
    color: var(--dusty-pink);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--dusty-pink);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    line-height: 40px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--terracotta);
}

/* Divider */
.divider {
    max-width: 300px;
    height: 2px;
    background-color: var(--dusty-pink);
    margin: 30px auto;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 15px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .tagline {
        font-size: 22px;
    }

    .story-section,
    .catalogue {
        padding: 40px 20px;
    }

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

    .hero p,
    .story-section p {
        font-size: 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.5s ease;
}

/* ---------- Added: hero image strip (rotating block prints) ---------- */
.hero-image-strip {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--cream);
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---------- Added: logo image (replaces inline SVG) ---------- */
.logo-img {
    display: block;
    height: 40px;
    width: auto;
}

/* ---------- Added: product photos ---------- */
.product-image.has-photo {
    height: auto;
    background: var(--cream);
}

.product-image.has-photo picture,
.product-image.has-photo img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-image-strip {
        height: 220px;
    }
}

/* ---------- Added: clickable logo & link-style CTA buttons ---------- */
.logo-link {
    display: inline-block;
}

a.cta-button {
    display: inline-block;
    text-decoration: none;
}

/* ---------- Added: Buy on Etsy / Buy on Amazon buttons ---------- */
.product-cta-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-cta-group .product-cta {
    flex: 1;
    width: auto;
    margin-top: 0;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
}

/* ---------- Added: new copy sections ---------- */
.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--terracotta);
    text-align: center !important;
    margin-top: -10px;
    margin-bottom: 30px !important;
}

.centered-section p {
    text-align: center;
}

.text-link-wrap {
    text-align: center !important;
    margin-top: 30px;
}

.text-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--terracotta);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--dusty-pink);
}

.text-link-light {
    color: white;
}

.text-link-light:hover {
    color: var(--cream);
}

.catalogue-header p + p {
    margin-top: 15px;
}

.catalogue-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 20px !important;
    color: var(--terracotta) !important;
}

.product-quote {
    font-style: italic;
    color: var(--terracotta) !important;
}

.values > .values-grid:first-child {
    margin-top: 0;
}

.values-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1100px;
}

/* ---------- Added: price + buy buttons pinned to card bottom ---------- */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-footer {
    margin-top: auto;
    padding-top: 10px;
}

.product-footer .price {
    margin-top: 0;
}

.price-tbc {
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
}

/* ---------- Added: single hero image (replaces slideshow) ---------- */
.hero-image-strip > picture,
.hero-image-strip > picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---------- Added: animated hero (video) ---------- */
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---------- Added: keep content clear of the fixed navigation bar ---------- */
/* --nav-height is set from the real nav height in main.js (fallback 81px) */
.page {
    padding-top: var(--nav-height, 81px);
}

/* ---------- Added: show the full height of the hero animation ---------- */
/* Strip follows the animation's own proportions (1536 × 546), so nothing is cropped */
.hero-image-strip {
    height: auto;
    aspect-ratio: 1536 / 546;
}

@media (max-width: 768px) {
    .hero-image-strip {
        height: auto;
    }
}

/* ---------- Added: Get Notified (embedded Google Form) ---------- */
.notify-form {
    max-width: 640px;
    margin: 0 auto;
}

.notify-form iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ---------- Added: Get Notified custom form ---------- */
.tpe-form {
    text-align: left;
    background: var(--white);
    border: 2px solid var(--dusty-pink);
    padding: 36px;
}

.form-field {
    margin-bottom: 26px;
}

.form-label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--charcoal);
    margin-bottom: 10px;
    line-height: 1.4;
}

.required {
    color: var(--terracotta);
}

.tpe-form input[type="text"],
.tpe-form input[type="email"],
.ms-toggle {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--charcoal);
    background: var(--cream);
    border: 1px solid var(--dusty-pink);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tpe-form input:focus,
.ms-toggle:focus-visible {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 90, 58, 0.15);
}

.tpe-form input.invalid {
    border-color: var(--terracotta);
}

.form-error {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--terracotta);
    margin-top: 6px !important;
    text-align: left !important;
}

/* Dropdown with checkboxes */
.multi-select {
    position: relative;
}

.ms-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.ms-summary {
    color: #8a8a8a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-summary.has-value {
    color: var(--charcoal);
}

.ms-caret {
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.multi-select.open .ms-caret {
    transform: rotate(180deg);
}

.ms-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--dusty-pink);
    box-shadow: 0 10px 30px rgba(58, 58, 58, 0.12);
}

.ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.ms-option:hover {
    background: rgba(212, 165, 165, 0.12);
}

.ms-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--terracotta);
    flex-shrink: 0;
}

.form-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px !important;
    color: #8a8a8a;
    text-align: left !important;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    color: #4f7a52;
    text-align: center !important;
    margin-top: 16px !important;
}

.form-status.is-error {
    color: var(--terracotta);
}

@media (max-width: 768px) {
    .tpe-form {
        padding: 24px 18px;
    }
}

/* Keep the Get Notified heading clear of the fixed nav when scrolled to */
#get-notified {
    scroll-margin-top: calc(var(--nav-height, 81px) + 20px);
}

/* ---------- Added: placeholder image boxes match product photo height ---------- */
.product-image:not(.has-photo) {
    height: auto;
    aspect-ratio: 1222 / 1287;
}

/* ---------- Added: hero animation cropped to top two-thirds (1536 × 364) ---------- */
.hero-image-strip {
    aspect-ratio: 1536 / 364;
}

/* ---------- Added: arch logo above "THE PINK EDIT" ---------- */
.hero-logo img {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .hero-logo img {
        width: 120px;
    }
}

/* ---------- Added: logo moved up 20px; page title kept for search engines but hidden ---------- */
.hero-logo img {
    position: relative;
    top: -20px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Added: full-height hero animation restored (1536 × 546) ---------- */
.hero-image-strip {
    aspect-ratio: 1536 / 546;
}

/* ---------- Added: "The Pink Edit" next to the nav logo (computers only) ---------- */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--dusty-pink);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
}
