/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary: #333333;
    --secondary: #fffef5;
    --accent: #4a90d9;
    --accent-light: #7bb3e8;
    --accent-dark: #2a6db5;
    --bg-paper: #fffef5;
    --bg-alt: #f5f4eb;
    --text-dark: #2a2a2a;
    --text-medium: #555555;
    --text-light: #888888;
    --pencil: #666666;
    --error: #d94a4a;
    --success: #4a9d5a;
    --font-hand: 'Caveat', cursive;
    --font-body: 'Patrick Hand', cursive;
    --font-alt: 'Architects Daughter', cursive;
    --shadow-sketch: 3px 3px 0 rgba(0,0,0,0.08);
    --shadow-hover: 5px 5px 0 rgba(74,144,217,0.15);
    --transition-base: 0.3s ease;
    --border-radius: 2px;
    --container-max: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-paper);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Selection color */
::selection {
    background: rgba(74, 144, 217, 0.25);
    color: var(--text-dark);
}

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

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

a:hover {
    color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 3px;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 16px 16px;
    transform: translateY(100%);
    animation: slideUpCookie 0.6s 1s forwards;
}

@keyframes slideUpCookie {
    to { transform: translateY(0); }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-inner {
    max-width: 720px;
    margin: 0 auto;
}

.cookie-sketch-border {
    background: var(--bg-paper);
    padding: 20px 24px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius);
}

.cookie-doodle-top {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
}

.cookie-text {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.cookie-links {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.cookie-links a {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 3px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-settings-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--pencil);
}

.cookie-settings-panel h3 {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.cookie-option {
    margin-bottom: 10px;
}

.cookie-option label {
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-option p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 24px;
    margin-top: 2px;
}

/* ============================================
   BUTTONS - SKETCH STYLE
   ============================================ */
.btn-sketch {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
    border-radius: var(--border-radius);
    display: inline-block;
    text-align: center;
    line-height: 1.3;
}

.btn-sketch:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
}

.btn-sketch:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-primary-sketch {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent-dark);
}

.btn-primary-sketch:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-secondary-sketch {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary-sketch:hover {
    background: var(--accent);
    color: #fff;
}

.btn-accept {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-size: 0.95rem;
    padding: 8px 18px;
}

.btn-essential {
    font-size: 0.95rem;
    padding: 8px 18px;
}

.btn-settings {
    font-size: 0.95rem;
    padding: 8px 18px;
    border-style: dashed;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 254, 245, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1.5px solid rgba(51, 51, 51, 0.15);
    height: var(--header-height);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom-color: rgba(51, 51, 51, 0.25);
}

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

.logo-link {
    text-decoration: none;
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.logo-text {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    display: none;
}

@media (min-width: 480px) {
    .logo-sub {
        display: block;
    }
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .line1 {
    transform: translate(0, 7px) rotate(45deg);
}

.nav-toggle.active .line2 {
    opacity: 0;
}

.nav-toggle.active .line3 {
    transform: translate(0, -7px) rotate(-45deg);
}

.nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-paper);
    border-bottom: 2px solid var(--primary);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-links.open {
    display: flex;
}

.nav-link {
    font-family: var(--font-hand);
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    display: block;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(74, 144, 217, 0.06);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 8px;
}

.nav-cta:hover {
    background: var(--accent-dark);
    color: #fff !important;
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0;
        box-shadow: none;
        align-items: center;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 8px 12px;
    }

    .nav-cta {
        margin-top: 0;
        margin-left: 8px;
        padding: 8px 20px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 40px) 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-paper);
}

.hero-bg-sketch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.scribble {
    position: absolute;
    opacity: 0;
    animation: fadeInScribble 0.8s forwards;
}

.scribble-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0.5s;
}

.scribble-2 {
    top: 20%;
    right: 8%;
    animation-delay: 0.8s;
}

.scribble-3 {
    bottom: 25%;
    left: 3%;
    animation-delay: 1s;
}

.scribble-4 {
    bottom: 30%;
    right: 5%;
    animation-delay: 1.2s;
}

@keyframes fadeInScribble {
    to { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    text-align: center;
    margin-bottom: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.6s 0.3s forwards;
}

.hero-title {
    font-family: var(--font-hand);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.7s 0.5s forwards;
}

.title-line-1 {
    display: block;
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: var(--text-dark);
}

.title-line-2 {
    display: block;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    color: var(--text-dark);
}

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

.highlight-sketch::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -4px;
    right: -4px;
    height: 12px;
    background: rgba(74, 144, 217, 0.15);
    border-radius: 2px;
    transform: rotate(-1deg);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 520px;
    margin: 0 auto 28px;
    opacity: 0;
    animation: fadeSlideUp 0.7s 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeSlideUp 0.7s 0.9s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUp 0.7s 1.1s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-hand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-percent,
.stat-plus {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}

.stat-divider {
    display: none;
}

@media (min-width: 600px) {
    .stat-divider {
        display: block;
    }
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    opacity: 0;
    animation: fadeSlideUp 0.8s 1.3s forwards;
}

.sketch-frame {
    position: relative;
    overflow: hidden;
}

.frame-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    filter: saturate(0.85) contrast(1.05);
    transition: filter var(--transition-base);
}

.hero-img:hover {
    filter: saturate(1) contrast(1);
}

.doodle-arrow {
    position: absolute;
    bottom: -30px;
    right: 20px;
    opacity: 0;
    animation: fadeInScribble 0.5s 2s forwards;
}

.doodle-label {
    position: absolute;
    bottom: -52px;
    right: 0;
    font-family: var(--font-hand);
    font-size: 1rem;
    color: var(--accent);
    transform: rotate(-3deg);
    opacity: 0;
    animation: fadeInScribble 0.5s 2.2s forwards;
}

.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
}

/* Hero specific wave positioning */
.hero .section-wave {
    position: relative;
    margin-top: 40px;
}

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

@media (min-width: 900px) {
    .hero {
        flex-direction: row;
        justify-content: center;
        gap: 60px;
        padding: calc(var(--header-height) + 60px) 48px 100px;
    }

    .hero-content {
        text-align: left;
        margin-bottom: 0;
        flex: 1;
        max-width: 560px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .hero-image-wrapper {
        flex: 1;
        max-width: 480px;
    }

    .hero .section-wave {
        position: absolute;
        margin-top: 0;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.section-title {
    font-family: var(--font-hand);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.underline-sketch {
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-paper);
}

.about-grid {
    display: grid;
    gap: 40px;
    align-items: start;
}

@media (min-width: 800px) {
    .about-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
    }
}

.sketch-card {
    position: relative;
    padding: 0;
}

.sketch-card .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.card-inner {
    padding: 32px 28px;
    position: relative;
    z-index: 0;
}

.about-card h3 {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-card p {
    margin-bottom: 14px;
    color: var(--text-medium);
    font-size: 1rem;
}

.about-highlights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(51,51,51,0.2);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-hand);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
}

.about-image-block {
    position: relative;
}

.about-frame {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.4s ease;
}

.about-img:hover {
    filter: saturate(1) contrast(1);
}

.sticky-note {
    position: absolute;
    bottom: -20px;
    right: -10px;
    width: 180px;
    transform: rotate(3deg);
    z-index: 3;
}

.sticky-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sticky-text {
    position: relative;
    padding: 16px 14px;
    font-family: var(--font-hand);
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Trust Section */
.trust-section {
    margin-top: 60px;
    padding: 40px 0;
    background: var(--bg-alt);
    border-top: 1px dashed rgba(51,51,51,0.15);
    border-bottom: 1px dashed rgba(51,51,51,0.15);
}

.trust-title {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 20px 16px;
}

.trust-item svg {
    margin: 0 auto 12px;
    display: block;
}

.trust-item h4 {
    font-family: var(--font-hand);
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-paper);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    position: relative;
    padding: 32px 24px;
    transition: transform var(--transition-base);
    cursor: default;
}

.service-card .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translate(-3px, -3px);
}

.service-card:hover .card-border path {
    stroke: var(--accent);
    stroke-width: 2;
}

.service-icon {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-card > p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-features {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-medium);
    padding: 4px 0;
}

.service-features li svg {
    flex-shrink: 0;
}

.btn-learn-more {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    padding: 8px 20px;
    border-style: dashed;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-paper);
}

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

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-large {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 280px;
    }

    .gallery-large {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .gallery-large .gallery-frame {
        height: 100%;
    }

    .gallery-large img {
        height: 100%;
        object-fit: cover;
    }
}

.gallery-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-frame .frame-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.gallery-frame img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    filter: saturate(0.75) contrast(1.05);
    transition: all 0.5s ease;
}

.gallery-frame:hover img {
    filter: saturate(1) contrast(1);
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-frame:hover .gallery-caption {
    opacity: 1;
}

.gallery-caption span {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    color: #fff;
}

/* ============================================
   CASE STUDIES SECTION
   ============================================ */
.case-studies-section {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-alt);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.case-study-card {
    position: relative;
    background: var(--bg-paper);
}

.case-study-card .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.case-study-inner {
    padding: 28px 24px;
    position: relative;
    z-index: 1;
}

.case-tag {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(74, 144, 217, 0.1);
    padding: 4px 12px;
    border: 1px dashed var(--accent);
    margin-bottom: 12px;
}

.case-study-card h3 {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.case-study-inner > p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.case-results {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px dashed rgba(51,51,51,0.15);
    border-bottom: 1px dashed rgba(51,51,51,0.15);
}

.case-stat {
    text-align: center;
    flex: 1;
}

.case-number {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}

.case-label {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

.case-quote {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-medium);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-paper);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.team-card {
    position: relative;
    text-align: center;
    padding: 32px 20px 24px;
    transition: transform var(--transition-base);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: all var(--transition-base);
}

.team-card:hover .card-border path {
    stroke: var(--accent);
}

.team-avatar {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.team-card h3 {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.team-role {
    font-family: var(--font-hand);
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    position: relative;
    background: var(--bg-paper);
    transition: transform var(--transition-base);
}

.testimonial-card:hover {
    transform: translate(-2px, -2px);
}

.testimonial-card .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.testimonial-inner {
    padding: 28px 24px;
    position: relative;
    z-index: 1;
}

.quote-mark {
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px dashed rgba(51,51,51,0.15);
    padding-top: 14px;
}

.author-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.testimonial-author strong {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    display: block;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 80px 0 60px;
    position: relative;
    background: var(--bg-paper);
}

.contact-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 800px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
    }
}

.contact-card {
    background: var(--bg-paper);
}

.contact-form {
    padding: 28px 24px;
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: block;
    font-family: var(--font-hand);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.required {
    color: var(--error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 14px;
    border: 1.5px solid rgba(51,51,51,0.3);
    border-radius: var(--border-radius);
    background: var(--bg-paper);
    color: var(--text-dark);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
    outline: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
}

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

.form-error {
    display: block;
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 1.2em;
}

.form-consent {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem !important;
    font-family: var(--font-body) !important;
    font-weight: normal !important;
    color: var(--text-medium);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all var(--transition-base);
}

.checkbox-custom .check-path {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--accent);
    background: rgba(74, 144, 217, 0.08);
}

.checkbox-label input:checked + .checkbox-custom .check-path {
    opacity: 1;
}

.checkbox-label a {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 2px;
}

.btn-submit {
    width: 100%;
    font-size: 1.2rem;
    padding: 14px 24px;
}

.form-success {
    text-align: center;
    padding: 20px;
    margin-top: 16px;
    background: rgba(74, 157, 90, 0.08);
    border: 1.5px dashed var(--success);
    border-radius: var(--border-radius);
}

.form-success svg {
    margin: 0 auto 10px;
}

.form-success p {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    color: var(--success);
}

/* Contact Info */
.contact-info-card {
    position: relative;
}

.contact-info-card .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.contact-info-inner {
    padding: 28px 24px;
    position: relative;
    z-index: 1;
}

.contact-info-inner h3 {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.info-item strong {
    font-family: var(--font-hand);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.contact-doodle {
    position: absolute;
    bottom: -40px;
    right: 20px;
    opacity: 0;
    animation: fadeInScribble 0.5s 0.5s forwards;
}

.contact-info-wrapper {
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    display: block;
    width: 100%;
}

.footer-wave path {
    fill: var(--bg-paper);
    stroke: var(--primary);
}

.footer-content {
    padding: 48px 24px 24px;
}

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

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

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

.footer-logo .logo-text {
    color: #fff;
    font-size: 1.4rem;
}

.footer-logo .logo-diamond path {
    stroke: var(--accent-light);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-links-col h4 {
    font-family: var(--font-hand);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 14px;
}

.footer-sub-heading {
    margin-top: 20px;
}

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

.footer-links-col li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-links-col a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-base);
}

.footer-links-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    margin-top: 32px;
}

.footer-divider {
    margin-bottom: 20px;
}

.footer-divider path {
    stroke: rgba(255,255,255,0.2);
}

.footer-bottom-content {
    text-align: center;
}

.footer-bottom-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: var(--bg-paper);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 32px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    transition: transform var(--transition-base);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.modal-body {
    position: relative;
    z-index: 1;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-body h4 {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-body li {
    font-size: 0.93rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    position: relative;
    list-style: disc;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-paper);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}

.back-to-top:hover svg path {
    stroke: #fff;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */
@media (max-width: 480px) {
    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

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

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

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

    .sticky-note {
        display: none;
    }
}

@media (max-width: 599px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .cookie-banner,
    .back-to-top,
    .modal-overlay,
    .notebook-lines {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}
