/*
Theme Name: Tiny Angel Gowns
Theme URI: https://tinyangelgowns.com
Author: Tiny Angel Gowns
Description: A warm, compassionate theme for Tiny Angel Gowns - handmade bereavement gowns donated to hospitals.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tiny-angel-gowns
*/

:root {
    --sage: #93A898;
    --lavender: #C4B7D5;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --dark: #3D3D3D;
    --light-gray: #F5F5F5;
    --accent-shadow: rgba(147, 168, 152, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--sage);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    border-bottom: 3px solid var(--sage);
    z-index: 100;
    padding: 1rem 3%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--dark);
    font-weight: 400;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--sage);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    align-items: stretch;
}

.hero-text-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 50%, #E8F0EC 100%);
    order: 2;
}

.hero-content {
    text-align: left;
    max-width: 560px;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--dark);
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    margin-top: 1.5rem;
}

.counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 2px solid var(--sage);
    border-bottom: 2px solid var(--sage);
    padding: 2rem 0;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sage);
    display: block;
}

.counter-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dark);
    margin-top: 0.5rem;
}

.hero-image-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #D4E8DC 0%, #C5DFCE 40%, #DFF0E5 100%);
    min-height: 50vh;
    padding: 3rem 2rem;
    order: 1;
}

.hero-featured-image {
    width: 85%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--accent-shadow);
    transition: transform 0.3s ease;
}

.hero-featured-image:hover {
    transform: scale(1.02);
}

.hero-image-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Buttons */
.btn,
.btn-secondary,
.btn-amazon {
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

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

.btn:hover {
    background-color: #7A8E82;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 168, 152, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--sage);
    border: 2px solid var(--sage);
}

.btn-secondary:hover {
    background-color: var(--sage);
    color: var(--white);
}

.btn-amazon {
    background-color: var(--lavender);
    color: var(--white);
}

.btn-amazon:hover {
    background-color: #B0A2C1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 183, 213, 0.3);
}

/* Section Container */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3%;
}

/* Story Section */
.story-section {
    background-color: var(--light-gray);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-timeline {
    position: relative;
    padding-left: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--sage) 0%, var(--lavender) 100%);
}

.timeline-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px dotted var(--lavender);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: var(--dark);
    line-height: 1.6;
}

.story-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px var(--accent-shadow);
}

/* Memorial Section */
.memorial-section {
    background: linear-gradient(135deg, #F5ECFF 0%, #FFEEF7 100%);
    border-left: 5px solid var(--lavender);
    padding-left: 0 !important;
}

.memorial-section .section-container {
    border-left: 5px solid var(--lavender);
    padding-left: calc(3% + 15px);
}

/* Hospital Sizes Grid */
.hospital-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.size-card {
    background-color: var(--cream);
    border-left: 4px solid var(--sage);
    padding: 2rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.size-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-shadow);
}

.size-card h3 {
    font-size: 1.4rem;
    color: var(--sage);
    margin-bottom: 1rem;
}

.size-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Hospital Images Grid */
.hospital-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.hospital-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--accent-shadow);
    transition: transform 0.3s ease;
    background-color: var(--cream);
    padding: 0.5rem;
}

.hospital-image:hover {
    transform: scale(1.03);
}

/* Form Container */
.form-container {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 2px var(--accent-shadow);
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.material-card {
    background-color: var(--cream);
    border-left: 4px solid var(--sage);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.material-card h4 {
    font-size: 1.1rem;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

/* Wedding Dress Content */
.wedding-dress-section {
    background: linear-gradient(135deg, #E8F0EC 0%, #F5ECFF 100%);
}

.wedding-dress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.wedding-dress-content h3 {
    font-size: 1.8rem;
    color: var(--sage);
    margin-bottom: 1rem;
}

.wedding-dress-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wedding-dress-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--accent-shadow);
    transition: transform 0.3s ease;
}

.wedding-dress-img:hover {
    transform: scale(1.03);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px var(--accent-shadow);
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: cover;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: all;
    border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Footer */
footer {
    background: linear-gradient(90deg, var(--sage) 0%, var(--lavender) 100%);
    color: var(--white);
    padding: 3rem 3%;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Decorative Elements */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--sage) 0%, var(--lavender) 100%);
    margin: 2rem auto;
    border-radius: 2px;
}

.lace-border {
    border-top: 2px dashed var(--lavender);
    padding-top: 2rem;
    margin-top: 2rem;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-image-side {
        order: 0;
    }

    .hero-text-side {
        order: 1;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-featured-image {
        width: 70%;
        max-width: 350px;
    }

    .counters {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 2%;
    }

    .header-wrapper {
        flex-wrap: wrap;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        border-bottom: 2px solid var(--sage);
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .hero-tagline {
        font-size: 1.6rem;
    }

    .counters {
        grid-template-columns: 1fr;
        padding: 1.5rem 0;
    }

    .counter-number {
        font-size: 2rem;
    }

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

    .wedding-dress-images {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .section-container {
        padding: 3rem 2%;
    }

    .hero-text-side {
        padding: 3rem 2rem;
    }
}

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

    .hero-image-side {
        min-height: 250px;
        padding: 2rem 1rem;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .hospital-images {
        grid-template-columns: 1fr;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-container {
        padding: 1.5rem 1%;
    }

    .logo-text {
        font-size: 1rem;
    }

    nav ul {
        gap: 0.75rem;
    }
}
