/* ==========================================================================
   DAVIS CAPTURE & CREATIONS - MAIN STYLESHEET
   Light & Airy Aesthetic | Responsive Design
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES - Design System
   ========================================================================== */
:root {
    /* Colors - Light & Airy Palette */
    --color-white: #FFFFFF;
    --color-cream: #FAF8F5;
    --color-beige: #F5F1ED;
    --color-blush: #F9EDE8;
    
    --color-charcoal: #2D2D2D;
    --color-grey: #6B6B6B;
    --color-light-grey: #E8E6E3;
    --color-accent-rose: #D4A5A5;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Italiana', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Layout */
    --container-max: 1400px;
    --content-max: 1100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 45, 45, 0.12);
    --shadow-lg: 0 8px 24px rgba(45, 45, 45, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.25rem;
    font-weight: 300;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

.section-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-charcoal);
}

.section-heading.centered {
    text-align: center;
}

.section-subheading {
    font-size: 1.125rem;
    text-align: center;
    color: var(--color-grey);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-weight: 300;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-light-grey);
    margin: 0 auto var(--spacing-lg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 2px;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent-rose);
    color: var(--color-white);
    border: 2px solid var(--color-accent-rose);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent-rose);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.text-link {
    font-size: 0.9375rem;
    color: var(--color-accent-rose);
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-block;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent-rose);
    transition: width var(--transition-medium);
}

.text-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(45, 45, 45, 0.06);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.25rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: auto;
    width: 220px;
    max-height: 70px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent-rose);
    transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-accent-rose);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    margin-left: var(--spacing-sm);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--color-charcoal);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform var(--transition-medium);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-medium);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    color: var(--color-charcoal);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--color-cream);
    color: var(--color-accent-rose);
    padding-left: 2rem;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all var(--transition-medium);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(250, 248, 245, 0.6) 0%,
        rgba(250, 248, 245, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-lg);
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-grey);
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.9);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-charcoal);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-charcoal);
    border-radius: 50%;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 1;
    }
}

/* ==========================================================================
   WELCOME SECTION
   ========================================================================== */
.welcome-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--color-grey);
    font-weight: 300;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background-color: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-rose);
    border: 2px solid var(--color-accent-rose);
    padding: 1rem 2rem;
    border-radius: 2px;
    transition: all var(--transition-medium);
}

.service-link:hover {
    background-color: var(--color-accent-rose);
    color: var(--color-white);
}

.service-content {
    padding: var(--spacing-lg);
}

.service-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-charcoal);
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-grey);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   PORTFOLIO PREVIEW SECTION
   ========================================================================== */
.portfolio-preview-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.preview-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.preview-medium:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.preview-medium:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.preview-tall {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.preview-item:hover img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 45, 45, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

.preview-category {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.portfolio-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-blush);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-heading {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-charcoal);
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-grey);
    margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: auto;
    width: 220px;
    max-height: 70px
    opacity: 0.9;
}


.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-rose);
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-xxl: 5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2, .section-heading {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-medium);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: var(--spacing-md);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-medium);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio Preview */
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .preview-large,
    .preview-medium,
    .preview-tall {
        grid-column: 1;
        grid-row: auto;
        height: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-img {
        width: 160px;
        max-height: 50px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}