/* Custom Wedding Theme CSS - Built on Pico.css */
/* Nature-inspired color palette */

:root {
    --green: #5B7343;
    --light-green: #B1BF93;
    --yellow: #D6D989;
    --beige: #f6f2e9;
    --red: #A66565;
    --text: #5B7343;

    /* Override Pico.css variables */
    --primary: #5B7343;
    --primary-hover: #4A5F36;
    --primary-focus: rgba(91, 115, 67, 0.125);
    --secondary: #B1BF93;
    --secondary-hover: #9DAA7F;
    --background-color: #f6f2e9;
    --color: #5B7343;
    --h1-color: #5B7343;
    --h2-color: #5B7343;
    --h3-color: #5B7343;
    --card-background-color: #ffffff;
    --card-border-color: rgba(91, 115, 67, 0.1);
}

/* Custom fonts */
@font-face {
    font-family: 'Amalfi-Coast';
    src: url('assets/fonts/Amalfi-Coast.ttf.woff') format('woff'),
        url('assets/fonts/Amalfi-Coast.ttf.svg#Amalfi-Coast') format('svg'),
        url('assets/fonts/Amalfi-Coast.ttf.eot'),
        url('assets/fonts/Amalfi-Coast.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

/* Base typography */
body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--beige);
    color: var(--text);
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--green);
}

/* Amalfi Coast font for special titles */
.title-fancy {
    font-family: 'Amalfi-Coast', serif;
    font-size: 3rem;
    color: var(--green);
    text-align: center;
    margin-bottom: 1rem;
}

/* Landing page styles */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.landing-hero {
    text-align: center;
    margin-bottom: 3rem;
    z-index: 10;
}

.landing-hero h1 {
    font-family: 'Amalfi-Coast';
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--green);
    margin-bottom: 1rem;
}

.landing-hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.landing-hero .date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--light-green);
}

/* Card grid for landing page */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    z-index: 10;
}

.card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateY(-5px);
}

.card-link article {
    text-align: center;
    padding: 2rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.card-link:hover article {
    border-color: var(--light-green);
}

.card-icon {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.card-link h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-link p {
    font-size: 1rem;
    color: var(--text);
}

/* Content page styles */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-page h1 {
    font-family: 'Amalfi-Coast';
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

table th {
    background-color: var(--green);
    color: white;
    padding: 1rem;
    text-align: left;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(91, 115, 67, 0.1);
}

table tr:hover {
    background-color: rgba(91, 115, 67, 0.05);
}

/* Decorative background images */
.bg-decoration {
    position: fixed;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

.bg-decoration.top-left {
    top: 0;
    left: 0;
    height: 40vh;
}

.bg-decoration.top-right {
    top: 0;
    right: 0;
    height: 40vh;
}

.bg-decoration.bottom-left {
    bottom: -10%;
    left: 0;
    height: 50vh;
}

.bg-decoration.bottom-right {
    bottom: -10%;
    right: 0;
    height: 50vh;
}

/* RSVP floating button */
.rsvp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.rsvp-float img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(91, 115, 67, 0.3);
    transition: all 0.3s ease;
}

.rsvp-float img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(91, 115, 67, 0.4);
}

/* Simple navbar */
nav {
    background-color: rgba(246, 242, 233, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(91, 115, 67, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(91, 115, 67, 0.1);
    color: var(--green);
}

nav a.active {
    background-color: rgba(91, 115, 67, 0.15);
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .title-fancy {
        font-size: 2rem;
    }

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

    .rsvp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .rsvp-float img {
        height: 60px;
        width: 60px;
    }

    nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .bg-decoration {
        opacity: 0.08;
    }
}

@media (max-width: 576px) {
    nav ul {
        gap: 0.25rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
