:root {
    --navy: #1E3A5F;
    --teal: #17A2B8;
    --gold: #E69A35;
    --light-bg: #F8F9FA;
    --text-dark: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: var(--font-heading); 
    color: var(--navy); 
    margin-bottom: 1rem; 
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 1.5rem; }
h3 { font-size: 1.3rem; margin-top: 1rem; }
a { text-decoration: none; color: var(--navy); }
p { margin-bottom: 1rem; }
ul, ol { list-style-position: inside; margin-bottom: 1rem; padding-left: 1rem; }
li { margin-bottom: 0.5rem; }

/* Header & Navigation Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    z-index: 900;
}

.logo { 
    font-size: 1.8rem; 
    font-family: var(--font-heading); 
    font-weight: bold; 
    color: var(--navy); 
    white-space: nowrap;
}

nav { flex-grow: 1; display: flex; justify-content: center; }

nav ul { 
    display: flex; 
    gap: 1.2rem; 
    list-style: none; 
    margin: 0; 
    padding: 0;
    align-items: center; 
}

nav a { 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active { color: var(--gold); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--navy);
    color: #ffffff;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Floating Widgets */
.float-wa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.float-wa-btn:hover { transform: scale(1.05); }

.float-quote-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: var(--teal);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.float-quote-btn:hover { transform: scale(1.05); }

/* Buttons */
.btn-primary { 
    background: var(--teal); 
    color: #fff !important; 
    padding: 0.6rem 1.2rem; 
    border-radius: 4px; 
    font-weight: bold; 
    display: inline-block;
}

.btn-primary:hover { background: #138496; }

.btn-secondary { 
    background: var(--gold); 
    color: #fff !important; 
    padding: 0.75rem 1.5rem; 
    border-radius: 4px; 
    font-weight: bold; 
    display: inline-block; 
    margin-top: 1rem;
}

.btn-secondary:hover { background: #d38b2d; }

/* Main Content Wrappers */
main { padding: 3rem 5%; max-width: 1200px; margin: 0 auto; }
section { margin-bottom: 3rem; }

/* Hero Sections with Overlay & Right Focal Point */
.hero {
    text-align: left;
    padding: 5rem 8%;
    border-radius: 8px;
    margin-bottom: 3rem;
    color: #ffffff;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero h1 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    max-width: 650px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero p {
    color: #f1f5f9;
    font-size: 1.2rem;
    max-width: 580px;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-home { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1555244162-803834f70033?auto=format&fit=crop&w=1600&q=80'); }
.hero-about { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1577219491135-ce391730fb2c?auto=format&fit=crop&w=1600&q=80'); }
.hero-services { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1600&q=80'); }
.hero-menu { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1600&q=80'); }
.hero-gallery { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80'); }
.hero-faqs { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1600&q=80'); }
.hero-blog { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=1600&q=80'); }
.hero-contact { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1600&q=80'); }
.hero-policy { background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.2) 100%), url('https://images.unsplash.com/photo-1450133064473-71024230f91b?auto=format&fit=crop&w=1600&q=80'); }

/* Grids & Cards */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-top: 1.5rem; 
}

.card { 
    background: var(--light-bg); 
    padding: 1.5rem; 
    border-radius: 8px; 
    border-top: 3px solid var(--teal);
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 1rem; 
    margin-top: 1rem;
}

.gallery-grid img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-radius: 8px; 
}

/* Forms */
form { display: grid; gap: 1rem; max-width: 600px; margin: 1.5rem 0; }
input, select, textarea { 
    width: 100%; 
    padding: 0.8rem; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-family: var(--font-body); 
    font-size: 0.95rem;
}
button[type="submit"] { border: none; cursor: pointer; }

/* Status Alerts */
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
footer { 
    background: var(--navy); 
    color: #ffffff;
    padding: 3rem 5%; 
    text-align: center; 
    margin-top: 4rem;
}

footer h3, footer a { color: #ffffff; }
footer a:hover { color: var(--gold); }

.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 1.2rem; 
    margin: 1.5rem 0; 
    flex-wrap: wrap;
}

.kinetix-tagline {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.kinetix-tagline a {
    color: var(--gold);
    font-weight: 600;
}

/* Mobile Responsive Optimization */
@media (max-width: 992px) {
    header { flex-wrap: wrap; }
    
    .menu-toggle { display: flex; }
    
    nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
        background: #ffffff;
        padding: 1rem 0;
        border-top: 1px solid #eee;
    }

    nav.active { display: block; }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 3rem 5%; }
}

@media (max-width: 576px) {
    .float-wa-btn span, .float-quote-btn span { display: none; }
    .float-wa-btn, .float-quote-btn { padding: 12px; border-radius: 50%; }
    main { padding: 1.5rem 4%; }
}