:root {
    --primary: #1a1a2e;
    --secondary: #c4a35a;
    --accent: #e8d5b7;
    --dark: #0f0f1a;
    --light: #f8f6f0;
    --text: #2d2d3a;
    --text-light: #6b6b7b;
    --white: #ffffff;
    --border: #e2e0dc;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='14' y='3' width='4' height='22' rx='2' fill='%23c4a35a'/%3E%3Crect x='9' y='25' width='14' height='3' rx='1.5' fill='%23c4a35a'/%3E%3Crect x='4' y='7' width='24' height='3' rx='1.5' fill='%23c4a35a'/%3E%3Ccircle cx='16' cy='5' r='3' fill='%23d4b76a'/%3E%3Cellipse cx='7' cy='18' rx='5' ry='3' fill='%23c4a35a'/%3E%3Cpath d='M2 18 L7 10 L12 18' stroke='%23c4a35a' stroke-width='2' fill='none'/%3E%3Cellipse cx='25' cy='16' rx='5' ry='3' fill='%23c4a35a'/%3E%3Cpath d='M20 16 L25 8 L30 16' stroke='%23c4a35a' stroke-width='2' fill='none'/%3E%3C/svg%3E") 16 4, auto;
}
a, button, [onclick], input[type="submit"], .btn, .calc-tool-item {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='14' y='3' width='4' height='22' rx='2' fill='%23d4b76a'/%3E%3Crect x='9' y='25' width='14' height='3' rx='1.5' fill='%23d4b76a'/%3E%3Crect x='4' y='7' width='24' height='3' rx='1.5' fill='%23d4b76a'/%3E%3Ccircle cx='16' cy='5' r='3' fill='%23e8c94a'/%3E%3Cellipse cx='7' cy='18' rx='5' ry='3' fill='%23d4b76a'/%3E%3Cpath d='M2 18 L7 10 L12 18' stroke='%23d4b76a' stroke-width='2.5' fill='none'/%3E%3Cellipse cx='25' cy='16' rx='5' ry='3' fill='%23d4b76a'/%3E%3Cpath d='M20 16 L25 8 L30 16' stroke='%23d4b76a' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") 16 4, pointer;
}

/* Mobile touch ripple */
.touch-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    animation: touchScale 0.8s ease-out forwards;
}
.touch-ripple svg { width: 100%; height: 100%; }
@keyframes touchScale {
    0% { opacity: 1; transform: translate(-50%,-50%) scale(0.3); }
    50% { opacity: 0.8; transform: translate(-50%,-50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--primary); }

/* TOPBAR */
.topbar {
    background: var(--primary);
    padding: 8px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); }
.topbar-link:hover { color: var(--secondary); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* HEADER */
.main-header {
    background: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content { display: flex; align-items: center; justify-content: space-between; }
.header-logo img { height: 70px; padding: 10px 0; transition: var(--transition); }
.header-logo:hover img { transform: scale(1.02); }

/* NAV */
.main-nav ul { display: flex; list-style: none; gap: 0; }
.main-nav a {
    display: block;
    padding: 24px 18px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--text);
    position: relative;
    text-transform: uppercase;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--secondary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }

/* HAMBURGER */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    position: relative;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .hamburger::after { top: 0; transform: rotate(-45deg); }

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a35a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
}
.page-hero p { color: var(--accent); font-size: 1.1rem; position: relative; }

/* SECTION */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), #d4b76a);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title { font-size: 2.2rem; margin-bottom: 12px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #d4b76a);
    color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(196,163,90,0.4); }
.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: var(--white); }

/* FOOTER */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img { height: 50px; margin-bottom: 16px; filter: brightness(10); }
.footer-desc { font-size: 0.9rem; line-height: 1.6; }
.site-footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.88rem; }
.footer-contact i { color: var(--secondary); margin-top: 3px; width: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* SCROLL TOP */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 90;
}
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 100;
    }
    .main-nav.open { opacity: 1; pointer-events: all; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 0; }
    .main-nav a { padding: 16px 30px; font-size: 1.1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .page-hero h1 { font-size: 1.8rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.7rem; }
}
