/* ============================================================
   ZENBRETA — Design System & Styles (v3)
   Light mode only · Red & Navy brand · Auto-hide navbar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Brand colors */
    --brand-red: #D42B2B;
    --brand-red-hover: #B82222;
    --brand-red-light: #E84D4D;
    --brand-navy: #1B237E;
    --brand-navy-light: #2A35A8;
    --brand-navy-dark: #111754;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 56px;
    --space-11: 64px;
    --space-12: 80px;
    --space-13: 96px;
    --space-14: 120px;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.35s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Color System — Light Only */
    --bg-primary: #FAFAFA;
    --bg-secondary: #F2F2F5;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-tertiary: #9A9A9A;
    --accent: var(--brand-navy);
    --accent-hover: var(--brand-navy-light);
    --accent-subtle: rgba(27, 35, 126, 0.06);
    --accent-red: var(--brand-red);
    --accent-red-hover: var(--brand-red-hover);
    --accent-red-subtle: rgba(212, 43, 43, 0.06);
    --border: #E5E5EA;
    --border-light: #F0F0F3;
    --whatsapp: #25D366;
    --whatsapp-hover: #1EBE5A;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::selection {
    background-color: var(--accent);
    color: #FFFFFF;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h4 {
    font-size: 1rem;
    font-weight: 500;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-4);
    display: block;
}

.section-title {
    margin-bottom: var(--space-6);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-14) 0;
}

/* ============================================================
   NAVIGATION — auto-hide on scroll down, show on scroll up
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav.nav-scrolled {
    box-shadow: var(--shadow-sm);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-logo span {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, padding 0.4s var(--ease-out);
    pointer-events: none;
}

.nav-mobile.active {
    max-height: 100vh;
    opacity: 1;
    padding: var(--space-6) var(--space-6) var(--space-8);
    pointer-events: all;
}

.nav-mobile a {
    font-size: 1.35rem;
    font-weight: 500;
    padding: var(--space-4) 0;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform 0.3s var(--ease-out), opacity 0.3s ease;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-8px);
    opacity: 0;
}

.nav-mobile.active a {
    transform: translateY(0);
    opacity: 1;
}

.nav-mobile.active a:nth-child(1) {
    transition-delay: 0.05s;
}

.nav-mobile.active a:nth-child(2) {
    transition-delay: 0.1s;
}

.nav-mobile.active a:nth-child(3) {
    transition-delay: 0.15s;
}

.nav-mobile.active a:nth-child(4) {
    transition-delay: 0.2s;
}

.nav-mobile.active a:nth-child(5) {
    transition-delay: 0.25s;
}

.nav-mobile a:hover {
    color: var(--text-primary);
}

/* ============================================================
   HERO SECTION — Desktop: side-by-side, Mobile: full-bleed image
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

/* Desktop layout (side by side) */
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero h1 {
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.hero h1 .accent {
    color: var(--accent-red);
}

.hero-description {
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: var(--space-9);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Hero visual — desktop: image in a card */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    justify-self: end;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile hero — full-screen background image overlay */
.hero-mobile-bg {
    display: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-7);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-red);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(212, 43, 43, 0.2);
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 4px 16px rgba(212, 43, 43, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* White button variant for mobile hero overlay */
.btn-white {
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-white-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    background: transparent;
}

.btn-white-outline:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services {
    background: var(--bg-secondary);
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-9) var(--space-7);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.service-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: var(--space-5);
    flex-grow: 1;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card .service-link:hover {
    gap: var(--space-3);
}

.service-card .service-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about-content .section-subtitle {
    margin-bottom: var(--space-7);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.925rem;
    margin-top: var(--space-4);
    transition: gap var(--transition-fast);
}

.about-link:hover {
    gap: var(--space-3);
}

.about-link svg {
    width: 16px;
    height: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-7) var(--space-6);
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}

.value-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: var(--space-2);
    font-family: var(--font-serif);
}

.value-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.value-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact {
    background: var(--bg-secondary);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info {
    padding-top: var(--space-4);
}

.contact-info .section-subtitle {
    margin-bottom: var(--space-8);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.contact-detail h4 {
    margin-bottom: var(--space-1);
}

.contact-detail p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-9);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.form-submit {
    margin-top: var(--space-2);
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-7);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: var(--space-3);
    text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid var(--border-light);
    padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-9);
    margin-bottom: var(--space-11);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-top: var(--space-4);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-7);
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */

.chat-widget-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-window {
    width: 340px;
    height: 480px;
    max-height: calc(100vh - 100px);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    border: 1px solid var(--border-light);
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--brand-navy);
    color: #FFFFFF;
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    color: var(--brand-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-header h4 {
    color: #FFFFFF;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.chat-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.chat-close {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.chat-close:hover {
    color: #FFFFFF;
}

.chat-close svg {
    width: 20px;
    height: 20px;
}

.chat-body {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Custom Scrollbar for Windows UI/UX */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

.chat-msg {
    max-width: 85%;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fade-in-up 0.3s ease forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    background: #FFFFFF;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-msg.user {
    background: var(--brand-navy);
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-quick-nav {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    scrollbar-width: none;
}

.chat-quick-nav::-webkit-scrollbar {
    display: none;
}

.chat-quick-nav button {
    white-space: nowrap;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.chat-quick-nav button:hover {
    background: var(--accent-subtle);
    color: var(--accent);
    border-color: var(--accent);
}

.chat-input-area {
    position: relative;
    padding: var(--space-3);
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
}

.chat-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-light);
    max-height: 180px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.chat-suggestions.active {
    display: flex;
}

.chat-suggestion-item {
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.chat-suggestion-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2px;
}

.chat-input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--space-2) var(--space-3);
    resize: none;
    font-size: 0.9rem;
    max-height: 100px;
    outline: none;
}

.chat-input-wrapper button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--accent);
    border-radius: 50%;
    margin: 4px;
    transition: background var(--transition-fast);
}

.chat-input-wrapper button:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
}

.chat-input-wrapper button:not(:disabled):hover {
    background: var(--brand-navy-light);
}

.chat-input-wrapper button svg {
    width: 16px;
    height: 16px;
    transform: translateX(-1px);
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: var(--space-3);
    background: #FFFFFF;
    align-self: flex-start;
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2);
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Soft Pop Preview */
.chat-preview-pop {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 999;
    background: #FFFFFF;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
    border-radius: var(--radius-lg);
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    color: var(--text-primary);
    max-width: 240px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    border: 1px solid var(--border-light);
}

.chat-preview-pop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    animation: gentle-bob 4s ease-in-out infinite alternate;
}

@keyframes gentle-bob {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-4px); }
}

.chat-preview-pop p {
    margin: 0;
    line-height: 1.4;
}

.chat-preview-pop button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: color var(--transition-fast);
}

.chat-preview-pop button:hover {
    color: var(--accent-red);
}

.chat-float {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 43, 43, 0.35);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(212, 43, 43, 0.5);
}

.chat-float svg {
    position: absolute;
    width: 26px;
    height: 26px;
    transition: opacity var(--transition-fast), transform var(--transition-base);
}

.chat-float .chat-icon-open {
    color: #FFFFFF;
}

.chat-float .chat-icon-close {
    color: #FFFFFF;
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-float.open .chat-icon-open {
    opacity: 0;
    transform: scale(0.5);
}

.chat-float.open .chat-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.chat-float-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: badge-pulse 2s ease-in-out infinite;
}

.chat-float-badge.hidden {
    display: none;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.chat-float.vibrate {
    animation: chat-vibrate 0.4s ease-in-out;
}

@keyframes chat-vibrate {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(8deg); }
    45% { transform: rotate(-6deg); }
    60% { transform: rotate(6deg); }
    75% { transform: rotate(-3deg); }
    90% { transform: rotate(3deg); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.revealed {
    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.35s;
}

.reveal-delay-5 {
    transition-delay: 0.4s;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero-visual {
        max-width: 480px;
        justify-self: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: var(--space-9);
    }

    .contact .container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7);
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (hero becomes full-bleed image)
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    section {
        padding: var(--space-12) 0;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Transparent navbar over hero — becomes solid on scroll */
    .nav {
        background: transparent;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav.nav-scrolled {
        background: var(--bg-nav);
        border-bottom-color: var(--border-light);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-hamburger span {
        background: #FFFFFF;
    }

    .nav.nav-scrolled .nav-hamburger span {
        background: var(--text-primary);
    }

    .chat-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .chat-float svg {
        width: 22px;
        height: 22px;
    }

    .chat-float-badge {
        width: 17px;
        height: 17px;
        font-size: 0.6rem;
    }

    /* Full-bleed hero with background image */
    .hero {
        min-height: 100vh;
        padding: 0;
        position: relative;
    }

    .hero-mobile-bg {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .hero-mobile-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-mobile-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(0, 0, 0, 0.7) 100%);
    }

    .hero .container {
        grid-template-columns: 1fr;
        position: relative;
        z-index: 2;
        padding-top: calc(var(--nav-height) + var(--space-12));
        padding-bottom: var(--space-12);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
        color: #FFFFFF;
    }

    .hero h1 .accent {
        color: #FFFFFF;
    }

    .hero-description {
        color: rgba(255, 255, 255, 0.85);
        max-width: 100%;
    }

    /* Hide desktop visual on mobile */
    .hero-visual {
        display: none;
    }

    /* Button overrides for dark background */
    .hero .btn-primary {
        background: #FFFFFF;
        color: var(--text-primary);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    .hero .btn-primary:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .hero .btn-outline {
        border-color: rgba(255, 255, 255, 0.4);
        color: #FFFFFF;
    }

    .hero .btn-outline:hover {
        border-color: #FFFFFF;
        background: rgba(255, 255, 255, 0.1);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .service-card {
        padding: var(--space-7) var(--space-6);
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-5);
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: var(--space-6);
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .nav-logo img {
        height: 36px;
    }

    .nav-logo span {
        font-size: 1.05rem;
    }
}

/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */

.service-page {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-14);
}

.service-page-header {
    margin-bottom: var(--space-12);
    max-width: 700px;
}

.service-page-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-7);
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.service-page-header .back-link:hover {
    color: var(--accent);
    gap: var(--space-3);
}

.service-page-header .back-link svg {
    width: 16px;
    height: 16px;
}

.service-page-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: var(--space-5);
}

.service-page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.service-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.service-body h2 {
    font-size: 1.3rem;
    margin-top: var(--space-9);
    margin-bottom: var(--space-4);
}

.service-body h2:first-child {
    margin-top: 0;
}

.service-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.service-body ul {
    list-style: none;
    margin-bottom: var(--space-5);
}

.service-body li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.service-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
}

.service-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-7));
}

.service-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
}

.service-sidebar-card h4 {
    margin-bottom: var(--space-5);
    color: var(--text-primary);
}

.service-sidebar-card a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.service-sidebar-card a:hover,
.service-sidebar-card a.current {
    color: var(--accent);
}

.service-cta-card {
    margin-top: var(--space-5);
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    text-align: center;
}

.service-cta-card h4 {
    margin-bottom: var(--space-3);
}

.service-cta-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-5);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .service-details {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .service-sidebar {
        position: static;
    }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
    min-height: 100vh;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: var(--space-4);
}

.legal-page .last-updated {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: var(--space-9);
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-top: var(--space-9);
    margin-bottom: var(--space-4);
}

.legal-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
    max-width: 720px;
}

.legal-page ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.legal-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}