/*
Theme Name: Pebbles and Pine
Theme URI: https://pebblesandpine.co.uk
Author: Pebbles and Pine
Author URI: https://pebblesandpine.co.uk
Description: A bespoke WordPress theme for Pebbles and Pine furniture, featuring coastal Devon aesthetics with elegant typography and smooth animations.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pebbles-and-pine
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

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

:root {
    --pine-warm: #D4A574;
    --pine-honey: #C8956E;
    --coastal-sage: #8B9E8D;
    --sea-glass: #A8C5C0;
    --driftwood: #9B8E7E;
    --sand-cream: #F5F1E8;
    --deep-ocean: #2C4A52;
    --pebble-grey: #6B7280;
    --warm-white: #FDFBF7;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    color: var(--deep-ocean);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--deep-ocean);
    letter-spacing: 1px;
    text-decoration: none;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--deep-ocean);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--deep-ocean);
    padding: 100px 50px;
    transition: right 0.4s ease;
    z-index: 999;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu ul li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.nav-menu.active ul li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active ul li:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.active ul li:nth-child(3) { transition-delay: 0.3s; }
.nav-menu.active ul li:nth-child(4) { transition-delay: 0.4s; }

.nav-menu ul li a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: var(--warm-white);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--pine-warm);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(44, 74, 82, 0.7) 0%, rgba(139, 158, 141, 0.5) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%238B9E8D" width="1200" height="800"/><path fill="%23A8C5C0" opacity="0.3" d="M0 400 Q300 300 600 400 T1200 400 V800 H0 Z"/><circle fill="%23D4A574" opacity="0.2" cx="900" cy="200" r="150"/><circle fill="%239B8E7E" opacity="0.15" cx="300" cy="600" r="100"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--deep-ocean);
}

.hero-tagline {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--pine-warm);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.cta-button:hover {
    background: var(--pine-honey);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

/* Carousel Section */
.carousel-section {
    padding: 100px 40px;
    background: var(--warm-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--deep-ocean);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--deep-ocean);
}

.section-header p {
    color: var(--pebble-grey);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.carousel-caption {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.carousel-caption h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.carousel-caption h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--deep-ocean);
}

.carousel-caption p {
    font-size: 16px;
    opacity: 0.95;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--deep-ocean);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-section {
    padding: 100px 40px;
    background: var(--sand-cream);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    height: 500px;
    background: linear-gradient(135deg, var(--coastal-sage) 0%, var(--sea-glass) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.about-image-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: white;
    text-align: center;
    padding: 40px;
}

.about-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--deep-ocean);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--deep-ocean);
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--pebble-grey);
    margin-bottom: 20px;
}

.about-text .highlight {
    color: var(--deep-ocean);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 100px 40px;
    background: var(--warm-white);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coastal-sage), var(--sea-glass));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--coastal-sage), var(--sea-glass));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--deep-ocean);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--deep-ocean);
}

.feature-card p {
    font-size: 15px;
    color: var(--pebble-grey);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 120px 40px;
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--coastal-sage) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 300;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: white;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-button-secondary {
    display: inline-block;
    padding: 18px 45px;
    background: white;
    color: var(--deep-ocean);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: var(--pine-warm);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* Footer */
footer {
    padding: 60px 40px 40px;
    background: var(--deep-ocean);
    color: white;
    position: relative;
    overflow: hidden;
}

.wave-layer {
    position: absolute;
    top: -2px;
    left: -50%;
    width: 200%;
    height: 120px;
    background: var(--sea-glass);
    opacity: 0.15;
}

.wave-1 {
    background: var(--sea-glass);
    opacity: 0.3;
    animation: wave-move 12s ease-in-out infinite;
    clip-path: path('M0,60 Q250,20 500,60 T1000,60 T1500,60 T2000,60 T2500,60 V120 H0 Z');
}

.wave-2 {
    background: var(--coastal-sage);
    opacity: 0.2;
    animation: wave-move 15s ease-in-out infinite reverse;
    animation-delay: -2s;
    clip-path: path('M0,70 Q200,40 400,70 T800,70 T1200,70 T1600,70 T2000,70 T2400,70 V120 H0 Z');
}

.wave-3 {
    background: var(--sand-cream);
    opacity: 0.15;
    animation: wave-move 18s ease-in-out infinite;
    animation-delay: -4s;
    clip-path: path('M0,80 Q300,50 600,80 T1200,80 T1800,80 T2400,80 V120 H0 Z');
}

@keyframes wave-move {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-5%) translateY(-8px);
    }
    50% {
        transform: translateX(-10%) translateY(0);
    }
    75% {
        transform: translateX(-5%) translateY(-8px);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
}

.footer-text {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 15px;
}

.footer-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 48px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-item {
        height: 500px;
    }

    nav {
        padding: 20px;
    }

    .carousel-section,
    .about-section,
    .features-section {
        padding: 60px 20px;
    }
}
