/*
Theme Name: Design By Toronto
Theme URI: https://designbytoronto.com
Description: Premier branding, design, and digital marketing studio theme.
Version: 1.0
Author: Design By Toronto
Author URI: https://designbytoronto.com
License: All Rights Reserved
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg: #0b0b0b;
    --bg-elevated: #111110;
    --bg-card: #151413;
    --bg-card-hover: #1c1a18;
    --gold: #c4a265;
    --gold-light: #d4b87a;
    --gold-muted: #a08650;
    --gold-dim: #7a6940;
    --cream: #ede8df;
    --cream-dim: #c8c0b4;
    --text-secondary: #8a8279;
    --text-muted: #5a554e;
    --border: #222018;
    --border-light: #2c2924;
    --font-display: 'Bodoni Moda', 'Georgia', serif;
    --font-heading: 'Cormorant', 'Georgia', serif;
    --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
    --section-padding: 140px;
    --container: 1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }
body.loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* ============================================
   WORDPRESS ADMIN BAR FIX
   ============================================ */
.admin-bar #navbar,
.admin-bar .legal-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #navbar,
    .admin-bar .legal-nav {
        top: 46px;
    }
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

#preloader.loaded {
    transform: translateY(-100%);
}

.preloader-content { text-align: center; }

.preloader-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0;
    animation: preloaderFadeIn 0.8s 0.2s forwards;
}

.preloader-line {
    width: 0;
    height: 1px;
    background: var(--gold);
    margin: 24px auto 0;
    animation: preloaderLine 1s 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

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

@keyframes preloaderLine {
    to { width: 80px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 28px 0;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    padding: 16px 0;
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 162, 101, 0.08);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--cream);
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-logo:hover { color: var(--gold); }

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 28px !important;
    border: 1px solid var(--gold-muted) !important;
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    transition: all 0.3s ease !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--bg) !important;
    border-color: var(--gold) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 10001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--cream);
    transition: all 0.3s ease;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ============================================
   HERO
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(196, 162, 101, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(160, 134, 80, 0.04) 0%, transparent 60%),
        url('https://images.unsplash.com/photo-1695368461574-5a0abdc04b7d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.15;
}

.hero-accent-line {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 1px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
    opacity: 0.3;
}

.hero-accent-line-2 {
    position: absolute;
    bottom: 25%;
    left: 8%;
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 900px;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 40px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 32px;
}

.hero-line {
    display: block;
    font-size: clamp(48px, 7.5vw, 96px);
    color: var(--cream);
}

.hero-line-accent {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--cream-dim);
    max-width: 520px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-muted);
    padding: 16px 40px;
    transition: all 0.4s ease;
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.cta-arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   MARQUEE (Industries)
   ============================================ */
.marquee-section {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-right: 0;
}

.marquee-item {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 24px;
}

.marquee-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold-dim);
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
.section-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--cream);
}

.section-title em {
    font-style: italic;
    color: var(--gold-light);
}

.section-header {
    margin-bottom: 80px;
}

.portfolio-header-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 480px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
    padding: var(--section-padding) 0;
}

.about-image {
    width: 100%;
    height: 400px;
    margin-bottom: 64px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.75) contrast(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
}

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

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 36px;
}

.about-title em {
    font-style: italic;
    color: var(--gold-light);
}

.about-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--cream-dim);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 16px;
    border-left: 1px solid var(--border);
    padding-left: 40px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

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

.service-card {
    background: var(--bg-card);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(196, 162, 101, 0.06);
}

.service-card:hover::before {
    width: 100%;
}

.service-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-card:hover .service-number { color: var(--gold); }

.service-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.service-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

.service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* ============================================
   PROCESS
   ============================================ */
#process {
    padding: var(--section-padding) 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-light);
}

.process-step {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.process-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    background: var(--bg);
    display: inline-block;
    padding: 0 12px;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.process-step p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ============================================
   PARALLAX DIVIDER
   ============================================ */
.parallax-divider {
    position: relative;
    height: 45vh;
    min-height: 320px;
    background: url('https://images.unsplash.com/photo-1702411200201-3061d0eea802?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.7);
}

.parallax-quote {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 700px;
}

.parallax-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--cream);
}

.parallax-quote cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-top: 20px;
    text-transform: uppercase;
}

/* ============================================
   PORTFOLIO
   ============================================ */
#portfolio {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

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

.portfolio-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), box-shadow 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
}

.portfolio-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Browser mockup frame */
.portfolio-browser {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #1a1917;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.portfolio-item:hover .portfolio-browser {
    border-color: rgba(196, 162, 101, 0.3);
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.5), 0 0 40px -8px rgba(196, 162, 101, 0.08);
}

.portfolio-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1a1917;
    border-bottom: 1px solid var(--border);
}

.portfolio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.portfolio-url-bar {
    flex: 1;
    height: 22px;
    margin-left: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.portfolio-screen {
    position: relative;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    position: relative;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.portfolio-large .portfolio-image { min-height: 580px; }

.portfolio-item:hover .portfolio-image {
    transform: scale(1.04);
}

/* Hover overlay on the screen area */
.portfolio-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 11, 11, 0.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-screen::after {
    opacity: 1;
}

/* Project info — always visible below the browser frame */
.portfolio-info {
    padding: 20px 4px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.portfolio-info-left {
    flex: 1;
}

.portfolio-category {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
    display: block;
}

.portfolio-info h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
}

.portfolio-large .portfolio-info h3 {
    font-size: 28px;
}

.portfolio-info p {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 6px;
}

.portfolio-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    color: var(--text-secondary);
}

.portfolio-item:hover .portfolio-arrow {
    border-color: var(--gold);
    background: rgba(196, 162, 101, 0.1);
    transform: rotate(-45deg);
    color: var(--gold);
}

.portfolio-arrow svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials {
    padding: var(--section-padding) 0;
    text-align: center;
}

.testimonials-wrapper {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    min-height: 260px;
}

.testimonial {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--gold);
    line-height: 0.6;
    margin-bottom: 8px;
    opacity: 0.4;
}

.testimonial blockquote {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--cream-dim);
    margin-bottom: 36px;
}

.author-name {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.author-title {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.test-prev,
.test-next {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.3s;
    padding: 8px;
}

.test-prev:hover,
.test-next:hover { color: var(--gold); }

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

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

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 24px;
}

.contact-title em {
    font-style: italic;
    color: var(--gold-light);
}

.contact-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--cream-dim);
    margin-bottom: 40px;
}

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

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail a {
    font-size: 16px;
    font-weight: 300;
    color: var(--cream);
    transition: color 0.3s;
}

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

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--cream);
    font-size: 15px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}

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

.form-group label {
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.1em;
}

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

.form-group select {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s;
}

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

.form-group select option {
    background: var(--bg-card);
    color: var(--cream);
    padding: 12px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 18px 48px;
    transition: all 0.4s ease;
}

.form-submit:hover {
    background: transparent;
    color: var(--gold);
}

.submit-arrow {
    transition: transform 0.3s;
    font-size: 16px;
}

.form-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom span {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
}

.back-to-top {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
    transition: color 0.3s;
}

.back-to-top:hover { color: var(--gold); }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0;
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 162, 101, 0.08);
}
.legal-nav .container {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.legal-nav-logo {
    font-family: var(--font-display); font-size: 17px; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream);
    transition: color 0.3s;
}
.legal-nav-logo:hover { color: var(--gold); }
.legal-nav-back {
    font-size: 13px; font-weight: 300; letter-spacing: 0.08em;
    color: var(--cream-dim); transition: color 0.3s;
}
.legal-nav-back:hover { color: var(--gold); }

.legal-hero {
    padding: 160px 0 80px; text-align: center;
    border-bottom: 1px solid var(--border);
}
.legal-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.legal-tag {
    font-size: 11px; font-weight: 400; letter-spacing: 0.35em;
    color: var(--gold); text-transform: uppercase; margin-bottom: 20px;
}
.legal-title {
    font-family: var(--font-heading); font-size: clamp(36px, 4vw, 52px);
    font-weight: 300; line-height: 1.2; color: var(--cream);
}
.legal-title em { font-style: italic; color: var(--gold-light); }
.legal-updated {
    font-size: 13px; font-weight: 300; color: var(--text-secondary);
    margin-top: 16px;
}

.legal-content {
    max-width: 800px; margin: 0 auto; padding: 80px 40px 120px;
}
.legal-content h2 {
    font-family: var(--font-heading); font-size: 28px; font-weight: 400;
    color: var(--cream); margin: 48px 0 16px; padding-top: 16px;
    border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content h3 {
    font-family: var(--font-heading); font-size: 22px; font-weight: 400;
    color: var(--cream-dim); margin: 32px 0 12px;
}
.legal-content p {
    font-size: 15px; font-weight: 300; line-height: 1.85;
    color: var(--cream-dim); margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
    margin: 0 0 16px 24px;
}
.legal-content li {
    font-size: 15px; font-weight: 300; line-height: 1.85;
    color: var(--cream-dim); margin-bottom: 8px;
}
.legal-content strong { font-weight: 500; color: var(--cream); }
.legal-content a { color: var(--gold); transition: color 0.3s; }
.legal-content a:hover { color: var(--gold-light); }

.cookie-table {
    width: 100%; border-collapse: collapse; margin: 16px 0 24px;
}
.cookie-table th, .cookie-table td {
    text-align: left; padding: 14px 16px;
    font-size: 14px; font-weight: 300; line-height: 1.6;
    color: var(--cream-dim);
    border-bottom: 1px solid var(--border);
}
.cookie-table th {
    font-weight: 500; color: var(--cream);
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--bg-elevated);
}
.cookie-table tr:last-child td { border-bottom: none; }

.legal-footer {
    padding: 40px 0; border-top: 1px solid var(--border); text-align: center;
}
.legal-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.legal-footer span { font-size: 13px; font-weight: 300; color: var(--text-muted); }
.legal-footer-links { margin-top: 16px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.legal-footer-links a {
    font-size: 13px; font-weight: 300; color: var(--text-secondary); transition: color 0.3s;
}
.legal-footer-links a:hover { color: var(--gold); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .about-image { height: 300px; }

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

    .about-stats {
        flex-direction: row;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 40px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .process-steps::before { display: none; }

    .process-number {
        background: var(--bg);
        padding: 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .portfolio-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .portfolio-large .portfolio-image { min-height: 380px; }
    .portfolio-large .portfolio-info h3 { font-size: 24px; }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .container { padding: 0 24px; }
    .nav-container { padding: 0 24px; }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 10000;
    }

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

    .nav-links a {
        font-size: 18px;
        font-weight: 300;
    }

    .nav-toggle { display: flex; }

    .hero-content { padding: 0 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 36px 28px; }
    .process-steps { grid-template-columns: 1fr; }

    .portfolio-grid { grid-template-columns: 1fr; gap: 32px; }
    .portfolio-large { grid-column: span 1; }
    .portfolio-large .portfolio-image { min-height: 240px; }
    .portfolio-image { min-height: 220px; }
    .portfolio-info { padding: 16px 2px 4px; }
    .portfolio-info h3 { font-size: 20px; }
    .portfolio-large .portfolio-info h3 { font-size: 20px; }

    .about-stats { flex-direction: column; }
    .section-header { margin-bottom: 48px; }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .testimonials-wrapper { margin-top: 40px; }

    .parallax-divider {
        background-attachment: scroll;
        height: 35vh;
        min-height: 260px;
    }

    /* Legal responsive */
    .legal-nav .container, .legal-hero .container { padding: 0 24px; }
    .legal-content { padding: 60px 24px 80px; }
    .legal-hero { padding: 140px 0 60px; }
    .cookie-table th, .cookie-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .hero-tag { font-size: 10px; letter-spacing: 0.3em; }
    .hero-subtitle { font-size: 15px; }
    .hero-cta { padding: 14px 32px; font-size: 12px; }
    .stat-number { font-size: 42px; }
    .service-title { font-size: 20px; }
    .contact-title { font-size: 28px; }
}
