/* ==========================================================================
   RUNDLE LANDSCAPING — DESIGN SYSTEM & BASE STYLES
   Design. Build. Inspire.
   ========================================================================== */

/* ── CSS Reset & Box Model ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ── */
:root {
    /* Colors — Rundle Brand Palette (extracted from logo) */
    /* Primary Dark: Blue-grey charcoal from logo background */
    --clr-charcoal:       #3D4750;
    --clr-charcoal-deep:  #272E36;
    --clr-charcoal-light: #505C68;

    /* Accent: Icy sky-blue from the sun circle + divider */
    --clr-sage:           #7EC8D3;
    --clr-sage-light:     #A4D8E0;
    --clr-sage-dark:      #5AABB8;
    --clr-sage-muted:     #BDE5EA;

    /* Warm neutral: cream/sand tones from the light logo text */
    --clr-stone:          #C8B89A;
    --clr-stone-light:    #DDD0BB;
    --clr-stone-dark:     #A89878;

    /* Warm gold accent — slightly warmer take on the cream */
    --clr-gold:           #C4A97D;
    --clr-gold-light:     #D9C09A;
    --clr-gold-dark:      #9E8258;

    /* Backgrounds — warm off-white from the light logo */
    --clr-warm-white:     #F4F2EE;
    --clr-cream:          #F8F6F2;
    --clr-off-white:      #EAE7E2;

    /* Text */
    --clr-text:           #1E242A;
    --clr-text-soft:      #424C56;
    --clr-text-muted:     #7A8490;
    --clr-text-light:     rgba(240,237,230,0.95);
    --clr-text-light-muted: rgba(240,237,230,0.65);

    /* Borders & Overlays */
    --clr-border:         rgba(61,71,80,0.10);
    --clr-border-light:   rgba(240,237,230,0.14);
    --clr-overlay:        rgba(39,46,54,0.75);
    --clr-overlay-heavy:  rgba(30,36,42,0.90);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --fs-display:  clamp(2.8rem, 5vw + 1rem, 4.8rem);
    --fs-h1:       clamp(2.2rem, 4vw + 0.5rem, 3.6rem);
    --fs-h2:       clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
    --fs-h3:       clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
    --fs-h4:       clamp(1rem, 1vw + 0.4rem, 1.2rem);
    --fs-body:     1rem;
    --fs-body-lg:  1.125rem;
    --fs-small:    0.875rem;
    --fs-xs:       0.75rem;

    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;
    --fw-extrabold:800;

    --lh-tight:    1.15;
    --lh-snug:     1.3;
    --lh-normal:   1.6;
    --lh-relaxed:  1.8;

    --ls-tight:   -0.02em;
    --ls-normal:   0;
    --ls-wide:     0.05em;
    --ls-wider:    0.1em;
    --ls-widest:   0.15em;

    /* Spacing */
    --space-xs:    0.25rem;
    --space-sm:    0.5rem;
    --space-md:    1rem;
    --space-lg:    1.5rem;
    --space-xl:    2rem;
    --space-2xl:   3rem;
    --space-3xl:   4rem;
    --space-4xl:   6rem;
    --space-5xl:   8rem;

    /* Layout */
    --container-max:   1280px;
    --container-narrow: 900px;
    --container-wide:  1440px;
    --nav-height:      80px;

    /* Border Radius */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:    0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl:    0 20px 48px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.08);
    --shadow-glow:  0 0 20px rgba(92,122,92,0.2);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow:   600ms ease;
}

/* ── Base Styles ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--clr-text);
    background-color: var(--clr-warm-white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--clr-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

h2 em, h3 em {
    font-style: italic;
    color: var(--clr-sage);
}

p {
    margin-bottom: var(--space-md);
    line-height: var(--lh-relaxed);
    color: var(--clr-text-soft);
}

strong {
    font-weight: var(--fw-semibold);
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-5xl) 0;
}

.section-alt {
    background-color: var(--clr-cream);
}

.section-dark {
    background-color: var(--clr-charcoal-deep);
    color: var(--clr-text-light);
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--clr-sage);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-lg);
    background: rgba(92,122,92,0.08);
    border-radius: var(--radius-full);
}

.section-dark .section-tag {
    background: rgba(92,122,92,0.2);
    color: var(--clr-sage-light);
}

.section-title {
    margin-bottom: var(--space-lg);
    letter-spacing: var(--ls-tight);
}

.section-dark .section-title {
    color: var(--clr-text-light);
}

.section-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: 0;
    line-height: var(--lh-relaxed);
}

.section-dark .section-subtitle {
    color: var(--clr-text-light-muted);
}

.section-header-light .section-title {
    color: var(--clr-text-light);
}

.section-header-light .section-subtitle {
    color: var(--clr-text-light-muted);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--fs-small);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--clr-sage);
    color: white;
    border-color: var(--clr-sage);
}

.btn-primary:hover {
    background: var(--clr-sage-dark);
    border-color: var(--clr-sage-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-sage);
    border-color: var(--clr-sage);
}

.btn-secondary:hover {
    background: var(--clr-sage);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-xs);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: var(--fs-small);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

/* Scroll-triggered animation base */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Selection & Scrollbar ── */
::selection {
    background-color: var(--clr-sage);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-stone);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-stone-dark);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .section {
        padding: var(--space-4xl) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
}
