/* ============================================
   MASON MARVELS — Premium Trades Website
   Color Palette:
     --bg-dark:    #0a0a0a   (near black)
     --bg-card:    #141414   (charcoal)
     --bg-surface: #1a1a1a   (dark surface)
     --bg-light:   #111111
     --text:       #e8e8e8   (off white)
     --text-muted: #888888
     --accent:     #D4943E   (muted copper/gold)
     --accent-hover:#daa87e
     --white:      #ffffff
   ============================================ */

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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-surface: #1a1a1a;
    --bg-light: #111111;
    --text: #e8e8e8;
    --text-muted: #888888;
    --accent: #D4943E;
    --accent-hover: #E8A94E;
    --accent-glow: rgba(212,148,62,0.35);
    --accent-soft: rgba(212,148,62,0.08);
    --white: #ffffff;
    --border: rgba(255,255,255,0.08);
    --border-accent: rgba(212,148,62,0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section--dark {
    background: var(--bg-surface);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--white);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

.text-accent {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(212,148,62,0.2);
}

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

.site-header.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    height: 48px;
    color: var(--white);
}

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

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

.logo-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo-name--accent {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

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

.nav-link--cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--bg-dark) !important;
    font-weight: 600;
    padding: 10px 22px;
    box-shadow: 0 3px 12px rgba(212,148,62,0.2);
}

.nav-link--cta:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #f0b85a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,148,62,0.3);
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(212,148,62,0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(212,148,62,0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(212,148,62,0.06) 0%, transparent 50%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212,148,62,0.12);
    border: 1px solid rgba(212,148,62,0.3);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(212,148,62,0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn .spinning {
    animation: spin 1s linear infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-number {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-anim 2s ease infinite;
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-icon--right {
    transition: transform var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212,148,62,0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow), 0 2px 10px rgba(212,148,62,0.2);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

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

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.about-img--main {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid var(--border);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    background:
        linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
}

.img-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.img-placeholder span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== ABOUT CAROUSEL ========== */
.about-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img--active {
    opacity: 1;
}

/* ========== GALLERY CENTRED ROW ========== */
.gallery-grid--centred {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.gallery-grid--centred .gallery-item {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--bg-dark);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(212,148,62,0.25);
}

.exp-number {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.about-feature:hover {
    border-color: var(--border-accent);
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.about-feature strong {
    display: block;
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px var(--accent-soft);
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(212,148,62,0.04) 100%);
}

.service-card:hover .service-icon {
    color: var(--accent);
}

.service-card:hover .service-line {
    width: 100%;
    background: var(--accent);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: transparent;
    transition: all 0.5s ease;
}

/* ========== WHY CHOOSE US ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-dark);
    transition: all var(--transition);
    position: relative;
}

.why-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px var(--accent-soft);
    background: linear-gradient(160deg, var(--bg-dark) 0%, rgba(212,148,62,0.04) 100%);
}

.why-card:hover .why-number {
    color: var(--accent);
}

.why-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    margin-bottom: 16px;
    transition: color var(--transition);
}

.why-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212,148,62,0.12);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(212,148,62,0.04) 100%);
    padding: 28px;
}

.gallery-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
}

.gallery-placeholder small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.contact-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}

.contact-method:hover {
    border-color: var(--border-accent);
    background: rgba(200,149,108,0.04);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(200,149,108,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
}

.contact-method-icon--whatsapp {
    background: rgba(37,211,102,0.1);
    color: #25d366;
}

.contact-method strong {
    display: block;
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.contact-method span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== CONTACT FORM ========== */
.contact-form-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 28px;
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    transition: all var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,148,62,0.15), 0 0 15px rgba(212,148,62,0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

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

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    align-items: start;
}

.footer-grid > div {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    height: 100%;
}

.footer-about {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 20px;
}

.footer-grid h4 {
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 12px;
}

.footer-grid ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all var(--transition);
}

.footer-grid ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li svg {
    color: var(--accent);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-credit {
    font-size: 0.78rem;
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-credit a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--transition);
    text-decoration: none;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ========== SCROLL ANIMATIONS ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .about-grid {
        gap: 48px;
    }

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

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

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

    .section {
        padding: 64px 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 65%;
        max-width: 280px;
        height: 100vh;
        background: var(--bg-surface);
        border-left: 1px solid var(--border);
        padding: 80px 24px 32px;
        transition: right var(--transition-slow);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2px;
        align-items: stretch;
    }

    .nav-link {
        font-size: 0.92rem;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover {
        background: rgba(255,255,255,0.04);
    }

    .nav-link--cta {
        text-align: center;
        margin-top: 8px;
        font-size: 0.88rem;
        padding: 10px 14px;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat {
        flex: 0 0 auto;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .about-experience-badge {
        right: 16px;
        bottom: -16px;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Why us mobile */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

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

    .hero-badge {
        font-size: 0.72rem;
    }

    .section-title {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }

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

    .service-card {
        padding: 24px 20px;
    }
}

/* ========== MOBILE NAV OVERLAY ========== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

/* ========== SETTINGS BUTTON ========== */
.settings-toggle {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 997;
    transition: all var(--transition);
}

.settings-toggle svg { width: 20px; height: 20px; }

.settings-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(45deg);
}

/* ========== SETTINGS PANEL ========== */
.settings-panel {
    position: fixed;
    bottom: 88px;
    left: 28px;
    width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: 1001;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.settings-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.settings-header h3 {
    font-size: 1rem;
    color: var(--white);
}

.settings-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.settings-close svg { width: 18px; height: 18px; }

.settings-body { padding: 20px 24px; }

.settings-group { margin-bottom: 24px; }
.settings-group:last-child { margin-bottom: 0; }

.settings-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.settings-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: -8px 0 12px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 26px;
    transition: all var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.cb-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.88rem;
    color: var(--text);
    border: 1px solid transparent;
}

.cb-option:hover { background: rgba(255,255,255,0.04); }
.cb-option input { display: none; }

.cb-option:has(input:checked) {
    border-color: var(--border-accent);
    background: var(--accent-soft);
}

.cb-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.cb-swatch--none { background: linear-gradient(135deg, #D4943E, #E8A94E); }
.cb-swatch--protanopia { background: linear-gradient(135deg, #c4a000, #7a8b2e); }
.cb-swatch--deuteranopia { background: linear-gradient(135deg, #b8860b, #8b7d3c); }
.cb-swatch--tritanopia { background: linear-gradient(135deg, #e05050, #50b8b8); }
.cb-swatch--achromatopsia { background: linear-gradient(135deg, #888, #bbb); }

.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.settings-overlay.active { display: block; }

/* ========== AI CHATBOT ========== */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 380px;
    max-height: 560px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.chatbot.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-dark);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
}

.chatbot-avatar svg { width: 18px; height: 18px; }
.chatbot-header strong { font-size: 0.9rem; }

.chatbot-status {
    display: block;
    font-size: 0.72rem;
    opacity: 0.8;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
}

.chatbot-close:hover { opacity: 1; }
.chatbot-close svg { width: 18px; height: 18px; }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 300px;
    min-height: 200px;
}

.chat-msg p {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 90%;
}

.chat-msg--bot p {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-msg--user {
    align-self: flex-end;
}

.chat-msg--user p {
    background: var(--accent);
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-bounce 1.4s ease infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chatbot-suggestions {
    padding: 0 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-chip {
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.suggestion-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--accent);
}

.chatbot-input input::placeholder { color: var(--text-muted); }

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.chatbot-input button svg { width: 18px; height: 18px; }

.chatbot-input button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Chatbot toggle button */
.chatbot-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px var(--accent-glow);
    transition: all var(--transition);
}

.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-toggle-close { display: none; }

.chatbot-toggle.active .chatbot-toggle-open { display: none; }
.chatbot-toggle.active .chatbot-toggle-close { display: block; }

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
}

.chatbot-badge.hidden { transform: scale(0); }

/* Move WhatsApp button up when chatbot is present */
.whatsapp-float {
    bottom: 100px;
    right: 28px;
}

/* ========== LIGHT THEME ========== */
body.light-mode {
    --bg-dark: #f5f5f0;
    --bg-card: #ffffff;
    --bg-surface: #eaeae5;
    --bg-light: #f0f0eb;
    --text: #2a2a2a;
    --text-muted: #6b6b6b;
    --white: #1a1a1a;
    --border: rgba(0,0,0,0.1);
    --border-accent: rgba(212,148,62,0.35);
    --accent-soft: rgba(212,148,62,0.1);
    --accent-glow: rgba(212,148,62,0.25);
}

body.light-mode .site-header.scrolled {
    background: rgba(245,245,240,0.92);
}

body.light-mode .mobile-toggle span { background: var(--white); }

body.light-mode .logo-svg text { fill: #1a1a1a; }
body.light-mode .logo-svg circle,
body.light-mode .logo-svg line,
body.light-mode .logo-svg path,
body.light-mode .logo-svg rect { stroke: #1a1a1a; }
body.light-mode .logo-svg text[fill="#D4943E"] { fill: #D4943E; }

body.light-mode .hero-pattern { opacity: 0.04; }

body.light-mode .hero-overlay {
    background:
        radial-gradient(ellipse at 15% 50%, rgba(212,148,62,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(212,148,62,0.05) 0%, transparent 45%);
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

body.light-mode .social-link { color: var(--text-muted); }

body.light-mode .chatbot-input input {
    background: var(--bg-card);
}

body.light-mode .chat-msg--bot p {
    background: var(--bg-card);
}

body.light-mode .footer-grid ul li a,
body.light-mode .footer-about,
body.light-mode .footer-bottom p,
body.light-mode .footer-credit { color: var(--text-muted); }
body.light-mode .footer-grid > div {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}

/* ========== COLOUR BLIND MODES ========== */
body.cb-protanopia {
    --accent: #b8a000;
    --accent-hover: #d4bc00;
    --accent-glow: rgba(184,160,0,0.35);
    --accent-soft: rgba(184,160,0,0.08);
    --border-accent: rgba(184,160,0,0.3);
}

body.cb-deuteranopia {
    --accent: #c4960b;
    --accent-hover: #deb020;
    --accent-glow: rgba(196,150,11,0.35);
    --accent-soft: rgba(196,150,11,0.08);
    --border-accent: rgba(196,150,11,0.3);
}

body.cb-tritanopia {
    --accent: #e06060;
    --accent-hover: #f07070;
    --accent-glow: rgba(224,96,96,0.35);
    --accent-soft: rgba(224,96,96,0.08);
    --border-accent: rgba(224,96,96,0.3);
}

body.cb-achromatopsia {
    --accent: #b0b0b0;
    --accent-hover: #cccccc;
    --accent-glow: rgba(176,176,176,0.35);
    --accent-soft: rgba(176,176,176,0.08);
    --border-accent: rgba(176,176,176,0.3);
}

/* Responsive adjustments for chatbot */
@media (max-width: 480px) {
    .chatbot {
        right: 12px;
        left: 12px;
        bottom: 92px;
        width: auto;
        max-height: 75vh;
    }

    .settings-panel {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .settings-toggle {
        bottom: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float {
        bottom: 84px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}
