/* 
   California Artisan Gallery Theme 
   Colors: Terracotta (#C05C3F), Clay (#8E735B), Warm Ivory (#F9F5F0), Olive (#606C38)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    --color-terracotta: #C05C3F;
    --color-clay: #8E735B;
    --color-ivory: #F9F5F0;
    --color-olive: #606C38;
    --color-text: #2C2C2C;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-ivory);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(249, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(142, 115, 91, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--color-terracotta);
    letter-spacing: -0.02em;
}

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

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

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

.btn-call {
    background-color: var(--color-terracotta);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-call:hover {
    background-color: var(--color-olive);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-secondary {
    border: 1px solid white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.trust-badges {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--color-clay);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-clay);
    opacity: 0.8;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border: 1px solid rgba(142, 115, 91, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-terracotta);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-terracotta);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About */
.about {
    background-color: #F0EDE8;
}

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

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.8rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    background: white;
    border-left: 4px solid var(--color-terracotta);
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(142, 115, 91, 0.3);
    background: transparent;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.btn-submit {
    background-color: var(--color-terracotta);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--color-olive);
}

#form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2rem;
    text-align: center;
    border: 1px solid #c8e6c9;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.map-wrapper {
    margin-top: 2rem;
    height: 300px;
    background: #eee;
}

.map-link {
    display: block;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    font-weight: 600;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--color-olive);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-content, .contact-container { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-item { grid-column: span 1 !important; height: 300px; }
}

@media (max-width: 768px) {
    nav { display: none; }
    .hero-ctas { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}
