/* ==========================================================================
   TINYA PYIPI ENGINEERING P/L - HYDRAULICS
   Main Stylesheet - Design System & Core Layout (Flyer Color Palette)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,600;1,700;1,800&family=Roboto+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Brand Colors (Exact Matches from Company Flyer) */
    --brand-crimson: #900C13;
    --brand-crimson-dark: #6C050B;
    --brand-crimson-light: #B81D24;
    --brand-crimson-glow: rgba(144, 12, 19, 0.25);
    
    --brand-green: #2E5A1C;
    --brand-green-dark: #1E3D12;
    --brand-green-light: #447E28;
    --brand-green-vivid: #16a34a;
    --brand-green-glow: rgba(46, 90, 28, 0.25);
    
    --brand-gold: #D4AF37;
    --brand-gold-dark: #A88725;
    --brand-gold-light: #F0CF65;
    --brand-gold-glow: rgba(212, 175, 55, 0.35);

    /* Light Theme Surfaces & Backgrounds (Dominant White & Clean Slate) */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --bg-surface-subtle: #f8fafc;
    
    /* Text & Typography Colors */
    --text-dark: #0f172a;
    --text-heading: #1e293b;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Borders & Dividers */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-crimson: rgba(144, 12, 19, 0.3);
    --border-gold: rgba(212, 175, 55, 0.5);
    --border-green: rgba(46, 90, 28, 0.3);

    /* Dark Accents (Used sparingly for contrast/footer) */
    --industrial-slate: #0f172a;
    --industrial-dark: #1e293b;
    
    /* Typography Stacks */
    --font-heading: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-script: 'Playfair Display', Georgia, serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Layout Dimensions */
    --header-height: 84px;
    --topbar-height: 42px;
    --container-max: 1320px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
    --shadow-crimson: 0 10px 25px rgba(144, 12, 19, 0.25);
    --shadow-green: 0 10px 25px rgba(46, 90, 28, 0.25);
    --shadow-gold: 0 8px 20px rgba(212, 175, 55, 0.25);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

.text-crimson {
    color: var(--brand-crimson);
}

.text-green {
    color: var(--brand-green);
}

.text-gold {
    color: var(--brand-gold-dark);
}

.script-tagline {
    font-family: var(--font-script);
    font-style: italic;
    font-weight: 700;
    color: var(--brand-crimson);
    letter-spacing: 0.02em;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-crimson);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    background: rgba(144, 12, 19, 0.08);
    padding: 0.35rem 1rem;
    border-left: 3.5px solid var(--brand-crimson);
    border-right: 1px solid var(--brand-gold);
    border-radius: var(--radius-sm);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.95rem;
    }
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* TOP ANNOUNCEMENT BAR (SIGNATURE FOREST GREEN FROM FLYER) */
.top-bar {
    background: linear-gradient(90deg, #1E3D12 0%, var(--brand-green) 50%, #1E3D12 100%);
    color: #ffffff;
    font-size: 0.825rem;
    border-bottom: 2px solid var(--brand-gold);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f1f5f9;
}

.top-bar-item svg {
    color: var(--brand-gold-light);
}

.top-bar-item a {
    color: #ffffff;
    font-weight: 600;
}

.top-bar-item a:hover {
    color: var(--brand-gold-light);
}

.top-bar-emergency {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-emergency .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(212, 175, 55, 0.8);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* STICKY MAIN NAVBAR (CRISP WHITE BACKGROUND WITH GOLD/CRIMSON ACCENTS) */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--brand-crimson);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    height: 74px;
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* BRAND LOGO DISPLAY */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: translateY(-1px) scale(1.02);
}

.brand-logo-card {
    height: 52px;
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.brand-logo-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-logo-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--brand-crimson);
    line-height: 1.1;
}

.brand-logo-subtitle {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--brand-green);
    line-height: 1.2;
}

/* NAV LINKS CAPSULE */
.nav-links-wrapper {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.3rem 0.5rem;
    border-radius: 30px;
    border: 1px solid var(--border-light);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--brand-crimson);
    background: rgba(144, 12, 19, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-crimson) 0%, var(--brand-crimson-light) 100%);
    box-shadow: 0 4px 12px rgba(144, 12, 19, 0.35);
    border: 1px solid var(--brand-gold);
}

/* NAV BUTTONS */
.nav-ctas {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-nav-cta {
    padding: 0.5rem 0.95rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    gap: 0.35rem;
}

/* BUTTONS SYSTEM (CRIMSON, GREEN, WHATSAPP, OUTLINE) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.45rem;
    font-family: var(--font-heading);
    font-size: 0.825rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transition: left 0.6s ease;
}

.btn:hover::after {
    left: 100%;
}

/* PRIMARY CTA: DEEP CRIMSON RED WITH GOLD BORDER */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-crimson) 0%, var(--brand-crimson-light) 100%);
    color: #ffffff;
    border: 1.5px solid var(--brand-gold);
    box-shadow: var(--shadow-crimson);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-crimson-dark) 0%, var(--brand-crimson) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(144, 12, 19, 0.4);
    color: #ffffff;
}

/* ACCENT CTA: SIGNATURE FOREST GREEN */
.btn-accent {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
    color: #ffffff;
    border: 1.5px solid var(--brand-gold);
    box-shadow: var(--shadow-green);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(46, 90, 28, 0.4);
    color: #ffffff;
}

/* WHATSAPP CTA */
.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

/* OUTLINE CTA */
.btn-outline {
    background: #ffffff;
    color: var(--brand-crimson);
    border: 1.5px solid var(--brand-crimson);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--brand-crimson);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-crimson);
}

/* HAMBURGER MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--brand-crimson);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

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

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

/* MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    border-left: 2px solid var(--brand-crimson);
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
    z-index: 1001;
    padding: 6rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right var(--transition-smooth);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.mobile-nav-link:hover {
    color: var(--brand-crimson);
    padding-left: 0.5rem;
}

.mobile-drawer-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overlay-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.overlay-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1300px) {
    .nav-links {
        gap: 0.15rem;
        padding: 0.2rem 0.35rem;
    }
    .nav-link {
        font-size: 0.725rem;
        padding: 0.4rem 0.6rem;
    }
    .btn-nav-cta {
        padding: 0.45rem 0.75rem;
        font-size: 0.725rem;
    }
}

@media (max-width: 1150px) {
    .nav-links-wrapper, .nav-ctas {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}
