﻿/* Brand palette (based on official Three of a Kind color #C8B399) */
:root {
    --brand-base: #c8b399;
    --brand-dark: #aa9882;
    --brand-darker: #8c7d6b;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(200, 179, 153, 0.7);
    backdrop-filter: blur(8px);
    padding: 1.5rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    /* subtle drop shadow so nav text stays readable against varying backgrounds */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.55);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    transform: translateY(-2px);
}

/* Section Styles */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

/* Home Section */
#home {
    background: url('/images/background.jpg') center top / cover no-repeat fixed;
    background-position: center -60px;
    color: white;
    text-align: center;
    position: relative;
}

/* Adjust background offset for wider screens */
@media (min-width: 1024px) {
    #home {
        background-position: center -120px;
    }
}

@media (min-width: 1440px) {
    #home {
        background-position: center -230px;
    }
}

@media (min-width: 1800px) {
    #home {
        background-position: center -320px;
    }
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 179, 153, 0.85) 0%, rgba(170, 152, 130, 0.85) 100%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

#home h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

#home .tagline {
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 800px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

#home .services {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s backwards;
    max-width: 900px;
    line-height: 1.8;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

#home .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--brand-darker);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.5s backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

#home .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
#about {
    background: white;
    text-align: center;
}

#about h2 {
    font-size: 3rem;
    color: var(--brand-darker);
    margin-bottom: 1rem;
    font-weight: 700;
}

#about > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 3rem;
}

.about-card {
    background: #f8f8f8;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--brand-darker);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

#about .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--brand-base);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#about .cta-button:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Socials Section */
#socials {
    background: #f8f8f8;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    min-height: auto;
    scroll-margin-top: 80px;
}

#socials h2 {
    font-size: 2.5rem;
    color: var(--brand-darker);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

#socials > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
}

.instagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 540px;
    width: 100%;
}

.instagram-embed-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 520px;
    overflow: hidden;
}

.instagram-embed-wrapper iframe {
    width: 540px;
    height: 520px !important;
    max-height: 520px !important;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.instagram-media {
    background: #FFF;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 1px;
    max-width: 540px;
    min-width: 326px;
    padding: 0;
    width: 99.375%;
}

.instagram-cta {
    margin-top: 0;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
}

.instagram-icon {
    font-size: 1.3rem;
}

/* Contact Section */
#contact {
    background: white;
}

#contact h2 {
    font-size: 3rem;
    color: var(--brand-darker);
    margin-bottom: 1rem;
    font-weight: 700;
}

#contact > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    text-align: center;
}

.contact-container {
    display: flex;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
}

.contact-info {
    flex: 1;
    /* light background so the box stands out from the white contact section */
    background: #f8f8f8;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--brand-darker);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--brand-base);
    color: white;
    transform: translateX(10px);
}

.contact-item-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--brand-darker);
}

.contact-item:hover .contact-item-icon {
    color: white;
}

.contact-form {
    flex: 1;
    /* light background so the box stands out from the white contact section */
    background: #f8f8f8;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--brand-darker);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-base);
    box-shadow: 0 0 0 3px rgba(200, 179, 153, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Validation Styles */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #4caf50;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #f44336;
    background-color: #fff5f5;
}

.validation-message {
    display: block;
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff5f5;
    border-left: 3px solid #f44336;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

.validation-summary {
    display: none;
}

.validation-summary.validation-errors {
    display: block;
    background: #fff5f5;
    border: 1px solid #f44336;
    border-left: 4px solid #f44336;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #c62828;
}

.validation-summary.validation-errors ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: none;
}

.validation-summary.validation-errors ul li {
    padding: 0.25rem 0;
    position: relative;
}

.validation-summary.validation-errors ul li::before {
    content: '⚠';
    position: absolute;
    left: -1.25rem;
    color: #f44336;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--brand-base);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.6;
}

.submitted-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff5f5;
    color: #c62828;
    border-radius: 8px;
    border-left: 4px solid #f44336;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }

    #home .tagline {
        font-size: 1.3rem;
    }

    #home .services {
        font-size: 1rem;
    }

    #about h2,
    #contact h2 {
        font-size: 2rem;
    }

    #socials {
        scroll-margin-top: 70px;
    }

    #socials h2 {
        font-size: 2rem;
    }

    #socials > p {
        font-size: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
    }

    nav ul {
        gap: 1.25rem;
    }

    nav a {
        font-size: 0.95rem;
    }
    
    .instagram-embed-wrapper {
        height: 520px;
    }
    
    .instagram-embed-wrapper iframe {
        min-width: 280px;
        height: 520px !important;
    }
}

/* Focus styles */
h1:focus {
    outline: none;
}