/* ==========================================================================
   The Craft Collective — Stylesheet
   Colours: Teal (primary) & White (gallery aesthetic)
   Typography: DM Sans / DM Serif Display
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    /* TODO: Replace with Annie's exact teal hex code */
    --teal: #2A9D8F;
    --teal-dark: #238A7E;
    --teal-light: #E8F5F3;
    --teal-50: #F0FAF8;

    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --grey-100: #F4F5F7;
    --grey-200: #E8EAED;
    --grey-300: #D1D5DB;
    --grey-500: #6B7280;
    --grey-700: #374151;
    --grey-900: #111827;

    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--grey-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--grey-900);
    line-height: 1.2;
}

/* ---------- Utilities ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--grey-100);
}

.section-header {
    text-align: centre;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-tag-light {
    color: rgba(255,255,255,0.8);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--grey-500);
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--teal);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
    color: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--grey-900);
}

.nav .logo-text {
    color: var(--white);
    transition: color var(--transition);
}

.nav.scrolled .logo-text {
    color: var(--grey-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav.scrolled .nav-links a {
    color: var(--grey-700);
}

.nav.scrolled .nav-links a:hover {
    color: var(--teal);
}

.nav-links .btn {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    background: transparent;
}

.nav-links .btn:hover {
    background: var(--white);
    color: var(--teal);
    border-color: var(--white);
}

.nav.scrolled .nav-links .btn {
    color: var(--white);
    border-color: var(--teal);
    background: var(--teal);
}

.nav.scrolled .nav-links .btn:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--grey-900);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, #1B6B61 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.hero-tag {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--teal);
    border-color: var(--white);
}

.hero-actions .btn-primary:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
    color: var(--teal-dark);
}

.hero-actions .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ---------- Join Page Hero ---------- */
.join-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, #1B6B61 100%);
    overflow: hidden;
}

.join-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.join-hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.join-hero .hero-tag {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.join-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.join-hero .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.8;
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-tag {
    display: block;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* ---------- Stats Banner ---------- */
.stats-banner {
    background: var(--teal);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ---------- Crafts Grid ---------- */
.crafts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.craft-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--grey-200);
}

.craft-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.craft-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--teal);
}

.craft-icon svg {
    width: 100%;
    height: 100%;
}

.craft-card h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.craft-card p {
    font-size: 0.95rem;
    color: var(--grey-500);
    line-height: 1.6;
}

/* ---------- Workshops Banner ---------- */
.workshops-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--teal-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.workshops-text {
    padding: 60px;
}

.workshops-text h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.workshops-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.workshops-text .btn {
    margin-top: 8px;
}

.workshops-pattern {
    position: relative;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pattern-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* ---------- CTA Section ---------- */
.section-cta {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-visit {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.cta-visit strong {
    color: var(--white);
}

/* ---------- Steps Grid ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--grey-500);
    line-height: 1.7;
}

/* ---------- Benefits Grid ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--grey-200);
    transition: all var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.benefit-icon {
    color: var(--teal);
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--grey-500);
    line-height: 1.7;
}

/* ---------- Comparison Table ---------- */
.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--grey-200);
}

.comparison-table th {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--grey-900);
    background: var(--grey-100);
    border-bottom: 2px solid var(--grey-200);
}

.comparison-table th.highlight {
    background: var(--teal);
    color: var(--white);
    border-bottom-color: var(--teal-dark);
}

.comparison-table td.highlight {
    background: var(--teal-50);
    font-weight: 600;
    color: var(--teal-dark);
}

.comparison-table .check {
    color: var(--teal-dark);
}

/* ---------- Visit Section ---------- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-block h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin-bottom: 12px;
}

.info-block p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 6px 0;
    font-size: 0.95rem;
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--grey-900);
}

.hours-table .closed td {
    color: var(--grey-300);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--teal-dark);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grey-100);
    color: var(--grey-700);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--teal);
    color: var(--white);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    background: var(--grey-100);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--grey-900);
    padding: 60px 0 40px;
    color: var(--grey-500);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
}

.footer .logo-text {
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--grey-500);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

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

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

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

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

    .nav.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        clip-path: inset(0 0 0 0);
    }

    .nav-links a,
    .nav.scrolled .nav-links a {
        color: var(--grey-900);
        font-size: 1.2rem;
    }

    .nav-links .btn,
    .nav.scrolled .nav-links .btn {
        color: var(--white);
        background: var(--teal);
        border-color: var(--teal);
    }

    .nav-toggle {
        position: relative;
        z-index: 1001;
    }

    .nav-toggle.active span {
        background: var(--grey-900);
    }

    .hero-content {
        padding: 140px 0 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-scroll {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .workshops-banner {
        grid-template-columns: 1fr;
    }

    .workshops-text {
        padding: 40px 28px;
    }

    .workshops-pattern {
        min-height: 120px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-legal {
        text-align: left;
    }

    .section {
        padding: 72px 0;
    }

    .section-cta {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
