@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #738C6B;
    --white: #ffffff;
    --black: #000000;
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

/* Navigation - Mobile First Approach */
nav {
    background-color: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1rem;
    padding: 0 1rem; /* Add padding to prevent touching screen edges */
    flex-wrap: wrap; /* Allow items to wrap on small screens */
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 0.9rem; /* Slightly smaller font for mobile */
    padding: 0.5rem; /* Add padding for better touch targets */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Desktop Styles */
@media (min-width: 768px) {
    nav ul {
        gap: 2rem; /* More space between items on desktop */
    }
    
    nav a {
        font-size: 1rem; /* Regular font size for desktop */
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    nav ul {
        gap: 0.5rem; /* Reduce gap further for very small screens */
        justify-content: space-around; /* Better space distribution */
    }
    
    nav a {
        padding: 0.3rem; /* Slightly smaller padding */
        font-size: 0.8rem; /* Smaller font for very small screens */
    }
}

nav a:hover {
    color: var(--black);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url(../img/arthureisabella.jpeg) center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 8rem;
    margin-bottom: 1rem;
}

/* Hero Footer */
.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.hero-footer-details {
    display: flex;
    gap: 2rem;
    width: 100%
}

.hero-footer-details div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hero-footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.hero-footer-social a:hover {
    color: var(--primary-color);
}

/* Information Page */
.information {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
    background-color: #f9f9f9;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-block {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-block img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .info-block {
        flex-direction: column;
    }
    
    .info-block img {
        width: 100%;
    }
}

/* Gift List Page */
.gift-list {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
    background-color: #f9f9f9;
}

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

.gift-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.gift-card img {
    width: 85%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.gift-card p {
	padding: 0.5rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 1rem auto;
    background: #eee;
    padding: 1rem;
}

/* Reservation Page */
.reservation {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
    background-color: #f9f9f9;
    text-align: center;
}

.reservation-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.phone-number {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0;
}

/* Common Styles */
.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-family: 'Great Vibes', cursive;
}

.button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
	margin-top: 1rem;
}

.button:hover {
    background-color: #4d7837;
}

.hero-footer {
    bottom: 0;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-container img {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.popup-container .button {
    width: 100%;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-button:hover {
    background-color: #4d7837;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
		padding-top: 70px; /* Prevent content from being hidden under fixed header */
    }

	.section-title {
        font-size: 2.5rem; /* Adjust section titles for mobile */
    }

    .hero h1 {
        font-size: 3.5rem;
        margin-top: 1rem; /* Add space below fixed header */
    }

}

/* QR Code Text Container */
.qr-code-text-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    width: 100%;
    align-items: stretch; /* Ensure children stretch to same height */
}

#qrCodeText {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    height: auto; /* Allow natural height */
    min-height: 48px; /* Match button height */
    box-sizing: border-box; /* Include padding in height calculation */
}

.secondary-button {
	margin-top: 0;
    background-color: #f0f0f0;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0 1.5rem; /* Adjusted padding */
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto; /* Allow natural height */
    min-height: 48px; /* Match input height */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .qr-code-text-container {
        flex-direction: column;
    }
    
    #qrCodeText,
    .secondary-button {
        min-height: 40px; /* Slightly smaller on mobile */
        width: 100%;
    }
}
