/* ==========================================================================
   Green Horizon Studio — Main Stylesheet
   Nature-inspired green tech theme
   Colors: deep forest #1B4332, sage #74C69D, cream #F8F9EA, charcoal #2D3436, gold #B8E986
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --color-forest: #1B4332;
    --color-forest-dark: #143727;
    --color-forest-light: #235D42;
    --color-sage: #74C69D;
    --color-sage-light: #A3D9BB;
    --color-cream: #F8F9EA;
    --color-cream-dark: #EFF0D8;
    --color-charcoal: #2D3436;
    --color-charcoal-light: #3D4648;
    --color-gold: #B8E986;
    --color-gold-dark: #9ED56A;
    --color-white: #FFFFFF;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-blob: 60% 40% 55% 45% / 45% 55% 45% 55%;
    --shadow-card: 0 4px 24px rgba(27, 67, 50, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(27, 67, 50, 0.14);
    --shadow-button: 0 4px 14px rgba(27, 67, 50, 0.2);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    --max-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Blob Background Decorations
   -------------------------------------------------------------------------- */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 100%;
    max-width: 800px;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    top: -5%;
    right: -10%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.blob-2 {
    bottom: 20%;
    left: -8%;
    animation-delay: -7s;
    animation-duration: 18s;
}

.blob-3 {
    bottom: -10%;
    right: 15%;
    animation-delay: -14s;
    animation-duration: 24s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -20px) rotate(3deg) scale(1.05); }
    50% { transform: translate(-15px, 25px) rotate(-2deg) scale(0.95); }
    75% { transform: translate(-25px, -10px) rotate(1deg) scale(1.02); }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 249, 234, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(248, 249, 234, 0.95);
    box-shadow: 0 2px 20px rgba(27, 67, 50, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-forest);
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.675rem;
    font-weight: 500;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    padding: 6px 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-sage);
    border-radius: 1px;
    transition: width var(--transition-spring);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-forest);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

.nav-link-cta {
    background: var(--color-forest);
    color: var(--color-cream) !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base), transform var(--transition-base);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--color-forest-light);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 80px;
    background: linear-gradient(165deg, var(--color-cream) 0%, var(--color-cream-dark) 60%, rgba(116, 198, 157, 0.12) 100%);
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-curve svg {
    display: block;
    width: 100%;
    height: auto;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 67, 50, 0.06);
    color: var(--color-forest);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-forest);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-highlight {
    color: var(--color-sage);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(184, 233, 134, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-charcoal-light);
    margin-bottom: 36px;
    max-width: 500px;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(27, 67, 50, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-forest);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-charcoal-light);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    width: 100%;
    max-width: 480px;
    animation: heroBlobPulse 8s ease-in-out infinite;
}

.hero-blob svg {
    width: 100%;
    height: auto;
}

@keyframes heroBlobPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.03) rotate(2deg); }
    66% { transform: scale(0.97) rotate(-1deg); }
}

/* --------------------------------------------------------------------------
   Section Dividers (Curved SVG)
   -------------------------------------------------------------------------- */
.section-divider {
    position: relative;
    z-index: 2;
    line-height: 0;
    background: var(--color-cream);
}

.section-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.section-divider + section {
    padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-cream);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--color-forest-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.28);
}

.btn-outline {
    background: transparent;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

.btn-outline:hover {
    background: var(--color-forest);
    color: var(--color-cream);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Section Shared Styles
   -------------------------------------------------------------------------- */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.section-eyebrow-light {
    color: var(--color-gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-forest);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-title-light {
    color: var(--color-cream);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-charcoal-light);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Services Grid
   -------------------------------------------------------------------------- */
.services {
    background: var(--color-cream);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest), var(--color-sage), var(--color-gold));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 24px;
}

.service-icon svg {
    display: block;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.825rem;
    color: var(--color-charcoal);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-sage);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    position: relative;
    background: var(--color-cream);
    z-index: 1;
    overflow: hidden;
}

.about-bg-blob {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 600px;
    pointer-events: none;
    opacity: 0.5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: start;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1rem;
    color: var(--color-charcoal-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(27, 67, 50, 0.08);
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-forest);
    margin-bottom: 2px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--color-charcoal-light);
}

/* About Card */
.about-visual {
    position: relative;
    z-index: 1;
}

.about-card {
    background: var(--color-forest);
    color: var(--color-cream);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(116, 198, 157, 0.1);
}

.about-card-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(248, 249, 234, 0.1);
}

.about-card-stat:last-of-type {
    margin-bottom: 28px;
}

.acs-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    min-width: 60px;
}

.acs-label {
    font-size: 0.85rem;
    color: rgba(248, 249, 234, 0.75);
}

.about-card-org {
    padding-top: 12px;
}

.about-card-org p {
    font-size: 0.75rem;
    color: rgba(248, 249, 234, 0.6);
    margin-bottom: 6px;
}

.about-card-org strong {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--color-sage-light);
}

.about-card-org address {
    font-style: normal;
    font-size: 0.8rem;
    color: rgba(248, 249, 234, 0.65);
    line-height: 1.6;
    margin-top: 8px;
}

.about-blob-decor {
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 200px;
    z-index: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Work Section
   -------------------------------------------------------------------------- */
.work {
    background: var(--color-cream);
    position: relative;
    z-index: 1;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.work-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.work-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(116, 198, 157, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.work-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 12px;
    line-height: 1.3;
}

.work-card-desc {
    font-size: 0.875rem;
    color: var(--color-charcoal-light);
    line-height: 1.65;
    margin-bottom: 20px;
}

.work-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-card-tech span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-charcoal-light);
    background: rgba(27, 67, 50, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
.process {
    background: var(--color-cream);
    position: relative;
    z-index: 1;
}

.process-timeline {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.process-step {
    display: flex;
    gap: 28px;
}

.process-step:not(:last-child) .process-body {
    padding-bottom: 48px;
}

.process-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.process-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-forest);
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--color-sage) 0%, rgba(116, 198, 157, 0.1) 100%);
    margin-top: 8px;
    min-height: 40px;
}

.process-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 10px;
}

.process-desc {
    font-size: 0.925rem;
    color: var(--color-charcoal-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.process-artifact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(116, 198, 157, 0.08);
    border: 1px solid rgba(116, 198, 157, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--color-forest);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--color-forest);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-content {
    color: var(--color-cream);
}

.contact-content .section-eyebrow {
    color: var(--color-gold);
}

.contact-desc {
    font-size: 1rem;
    color: rgba(248, 249, 234, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(248, 249, 234, 0.8);
    font-size: 0.9rem;
    transition: color var(--transition-base);
    word-break: break-all;
}

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

.contact-address {
    cursor: default;
}

.contact-address span {
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(27, 67, 50, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    background: var(--color-white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

.form-input::placeholder {
    color: rgba(45, 52, 54, 0.35);
}

.form-input:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 4px rgba(116, 198, 157, 0.15);
}

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

.form-note {
    font-size: 0.775rem;
    color: var(--color-charcoal-light);
    text-align: center;
    margin-top: 14px;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-cream);
    position: relative;
}

.footer-curve {
    line-height: 0;
    margin-top: -1px;
}

.footer-curve svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-forest);
}

.footer-tagline {
    font-size: 0.825rem;
    color: var(--color-charcoal-light);
    line-height: 1.5;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-forest);
    margin-bottom: 16px;
}

.footer-nav ul,
.footer-legal ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-legal a,
.footer-contact a {
    font-size: 0.875rem;
    color: var(--color-charcoal-light);
    transition: color var(--transition-base);
}

.footer-nav a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
    color: var(--color-forest);
}

.footer-contact li {
    font-size: 0.875rem;
    color: var(--color-charcoal-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(27, 67, 50, 0.08);
    font-size: 0.8rem;
    color: var(--color-charcoal-light);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-eco {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-sage);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Legal Pages (Privacy Policy / Terms of Service)
   -------------------------------------------------------------------------- */
.legal-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: var(--color-cream);
    min-height: 100vh;
}

.legal-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

.legal-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--color-charcoal-light);
}

.legal-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-charcoal-light);
}

.legal-body h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-top: 40px;
    margin-bottom: 14px;
    padding-top: 20px;
}

.legal-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.legal-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-body p {
    margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-body ul {
    list-style: disc;
}

.legal-body ol {
    list-style: decimal;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body strong {
    color: var(--color-charcoal);
}

.legal-body a {
    color: var(--color-forest);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: var(--color-sage);
}

.legal-body address {
    font-style: normal;
    color: var(--color-charcoal);
    font-weight: 500;
}

.legal-body hr {
    border: none;
    border-top: 1px solid rgba(27, 67, 50, 0.08);
    margin: 32px 0;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-forest);
    transition: color var(--transition-base);
}

.legal-back:hover {
    color: var(--color-sage);
}

/* --------------------------------------------------------------------------
   Scroll-triggered Animations
   -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 360px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-smooth);
    }

    .nav-list.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

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

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

    .process-step {
        gap: 16px;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

    .section-inner {
        padding: 64px 20px;
    }

    .legal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .about-card {
        padding: 32px 24px;
    }
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .blob,
    .hero-blob {
        animation: none;
    }

    .fade-up {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Focus Styles
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--color-sage);
    outline-offset: 3px;
    border-radius: 2px;
}

.btn:focus-visible,
.nav-link-cta:focus-visible {
    outline-color: var(--color-gold);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
    background: rgba(116, 198, 157, 0.25);
    color: var(--color-forest);
}
