/* ===================================
   ENCORE PATIO — Styles
   Deep Navy + Warm Gold | Minimalist
   =================================== */

/* CSS Custom Properties */
:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-dark: #020617;
    --gold: #d4af37;
    --gold-light: #e8c94a;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --cream: #f1efe9;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -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);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
    mix-blend-mode: difference;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 64px;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--gray-600);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border: 1.5px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Section Header */
.section-header {
    margin-bottom: 64px;
}

.section-header .line {
    width: 60px;
    height: 1.5px;
    background: var(--gold);
    margin-top: 24px;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    transition: var(--transition);
}

.site-header.scrolled .logo {
    color: var(--navy);
}

.logo-mark {
    width: 28px;
    height: 28px;
    position: relative;
}

.logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 40px;
}

.desktop-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:hover {
    color: var(--white);
}

.site-header.scrolled .desktop-nav a {
    color: var(--gray-600);
}

.site-header.scrolled .desktop-nav a:hover {
    color: var(--navy);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
}

.site-header.scrolled .mobile-menu-btn span {
    background: var(--navy);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
}

.mobile-link:hover {
    color: var(--gold);
}

.mobile-cta {
    margin-top: 16px;
}

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.85) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-card {
    max-width: 640px;
    padding: 48px 0;
}

.hero-card .eyebrow {
    margin-bottom: 20px;
}

.hero-card h1 {
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-card h1 br {
    display: none;
}

.hero-desc {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Floating Stat Cards */
.floating-cards {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    min-width: 220px;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-4px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
}

/* ===================================
   SERVICES
   =================================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.service-card {
    padding: 40px 32px;
    background: var(--off-white);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.service-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.link-arrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow span {
    transition: var(--transition);
}

.service-card:hover .link-arrow span {
    transform: translateX(4px);
    color: var(--gold);
}

/* ===================================
   PROCESS
   =================================== */
.process {
    padding: 120px 0;
    background: var(--navy);
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

.process-content {
    display: flex;
    flex-direction: column;
}

.process-content .eyebrow {
    margin-bottom: 16px;
}

.process-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.process-intro {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
    max-width: 480px;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    padding-top: 4px;
}

.step h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.step p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
}

.process-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    z-index: -1;
}

/* ===================================
   GALLERY
   =================================== */
.gallery {
    padding: 120px 0;
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 24px;
}

/* ===================================
   ABOUT
   =================================== */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-content .eyebrow {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
    max-width: 520px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
}

.value-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.image-stack {
    position: relative;
}

.image-stack img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.accent-box {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--gold);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accent-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.accent-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-top: 4px;
}

/* ===================================
   CONTACT
   =================================== */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .eyebrow {
    margin-bottom: 16px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-desc {
    margin-bottom: 48px;
    max-width: 440px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    color: var(--gold);
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.6;
}

.detail-value a:hover {
    color: var(--gold);
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    outline: none;
    transition: var(--transition);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--off-white);
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--navy-dark);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-card h1 br {
        display: block;
    }
    
    .process-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .process-image {
        order: -1;
    }
    
    .image-wrapper img {
        height: 500px;
    }
    
    .about-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-wrapper {
        padding: 48px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .floating-cards {
        right: 64px;
    }
    
    .stat-card {
        min-width: 240px;
    }
}

@media (min-width: 1280px) {
    .floating-cards {
        right: 120px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
