:root {
    --bg: #fbf8f5;
    --card: #ffffff;
    --text: #262322;
    --muted: #6f6863;
    --accent: #b98a72;
    --accent-dark: #8e6754;
    --line: #e8ddd6;
    --shadow: 0 18px 45px rgba(61, 43, 34, .10);
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* Topbar Navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(251, 248, 245, .91);
    border-bottom: 1px solid rgba(232, 221, 214, .85);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--accent), #d7b7a5);
    box-shadow: 0 8px 20px rgba(185, 138, 114, .25);
    font-size: 14px;
}

.brand small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .08em;
}

.navlinks {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navlinks a:not(.btn) {
    text-decoration: none;
    color: var(--muted);
    font-weight: 650;
    transition: color 0.2s ease;
}

.navlinks a:not(.btn):hover {
    color: var(--text);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    cursor: pointer;
    font: inherit;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.navlinks .btn-primary {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 12px 28px rgba(185, 138, 114, .26);
}

.btn-primary:hover,
.navlinks .btn-primary:hover {
    background: var(--accent-dark) !important;
    color: #ffffff !important;
    border-color: var(--accent-dark) !important;
    box-shadow: 0 14px 30px rgba(142, 103, 84, .32);
}

.btn-light {
    background: #ffffff !important;
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
}

.btn-light:hover {
    background: #ffffff !important;
    color: var(--accent-dark) !important;
    border-color: var(--accent) !important;
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding: 76px 0 58px;
    background:
        radial-gradient(circle at 82% 22%, rgba(215, 183, 165, .45), transparent 28%),
        radial-gradient(circle at 18% 80%, rgba(185, 138, 114, .12), transparent 30%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    margin: 0 0 22px;
    letter-spacing: -.045em;
}

h1 span {
    color: var(--accent-dark);
}

.lead {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--muted);
    max-width: 660px;
    margin: 0 0 28px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.micro {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.hero-card {
    min-height: 500px;
    border-radius: 36px;
    padding: 34px;
    background: linear-gradient(145deg, #d5b19d, #9e705a);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: flex-end;
}

.hero-card:before,
.hero-card:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.hero-card:before {
    width: 340px;
    height: 340px;
    right: -120px;
    top: -90px;
}

.hero-card:after {
    width: 230px;
    height: 230px;
    left: -70px;
    bottom: 100px;
}

.hero-card-content {
    position: relative;
    z-index: 2;
}

.hero-card strong {
    display: block;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-card p {
    margin: 0;
    max-width: 420px;
    color: rgba(255, 255, 255, .9);
}

.hero-note {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-note div {
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    text-align: center;
    font-weight: 750;
    font-size: 14px;
}

/* Sections */
section {
    padding: 76px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin: 0 0 12px;
    letter-spacing: -.035em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

.service {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(61, 43, 34, .04);
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #f3e8e1;
    color: var(--accent-dark);
    font-size: 22px;
    margin-bottom: 18px;
}

.service h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.service p {
    margin: 0;
    color: var(--muted);
}

/* Why Us Section */
.why {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 24px;
    align-items: stretch;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 34px;
}

.panel.accent {
    background: #2f2926;
    color: white;
    border-color: #2f2926;
}

.panel.accent p {
    color: #d9d0cb;
}

.checks {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 13px;
}

.checks li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.checks b {
    color: var(--accent);
}

.quote {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 18px;
}

/* CTA */
.cta {
    border-radius: 34px;
    padding: 42px;
    background: linear-gradient(135deg, #f0e1d8, #fff);
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.cta h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.03em;
}

.cta p {
    margin: 0;
    color: var(--muted);
}

/* Contact Grid & Card UI */
.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 12px 36px rgba(61, 43, 34, .04);
}

.contact-list {
    display: grid;
    gap: 20px;
}

.contact-item {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-label {
    display: block !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .09em !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.contact-item strong {
    font-size: 16.5px;
    color: var(--text);
}

.contact-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 750;
    font-size: 16.5px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-dark);
}

/* Clean Inline Social Links Style (Off-center bug fixed) */
.social-text-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-text-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    font-weight: 650 !important;
    font-size: 15px !important;
    color: var(--text) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: color 0.2s ease !important;
}

.social-text-link span {
    text-transform: none !important;
    font-size: 15px !important;
    letter-spacing: normal !important;
    font-weight: 650 !important;
}

.social-icon-circle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--accent) !important;
    color: var(--accent-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.social-icon-circle svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.social-text-link:hover {
    color: var(--accent-dark) !important;
}

.social-text-link:hover .social-icon-circle {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    transform: scale(1.08) !important;
}

iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 28px;
    background: #eee;
}

/* Modern Premium Footer Styles */
footer {
    background: #f5ebe3;
    border-top: 1px solid var(--line);
    padding: 60px 0 32px;
    margin-top: 80px;
    color: var(--text);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-grid-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-desc {
    color: var(--muted);
    font-size: 14.5px;
    margin: 16px 0 20px;
    max-width: 320px;
    line-height: 1.55;
}

.footer-title {
    font-weight: 850;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.footer-info-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text);
    list-style: none !important;
}

.footer-info-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
    transition: color 0.2s ease;
}

.footer-info-list a:hover {
    color: var(--accent-dark);
}

.info-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(61, 43, 34, .04);
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text) !important;
    font-size: 13.5px;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(61, 43, 34, .04);
}

.social-btn-pill:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 138, 114, .25);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(232, 221, 214, .9);
    padding-top: 24px;
    font-size: 14px;
    color: var(--muted);
}

.footer-policy-link {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text) !important;
    font-weight: 650;
    transition: all 0.2s ease;
}

.footer-policy-link:hover {
    background: #fff !important;
    color: var(--accent-dark) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(61, 43, 34, .08);
}

/* Floating Call Button */
.floating-call {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    text-decoration: none;
    place-items: center;
    box-shadow: 0 16px 34px rgba(86, 55, 41, .28);
    font-size: 22px;
}

/* Policy Page & Subpage Layout */
.page-header {
    padding: 48px 0 20px;
}

.page-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(61, 43, 34, .03);
    margin-bottom: 40px;
}

.sf-font-h4 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

.sf-font-h5 {
    font-size: 18px;
    font-weight: 750;
    color: var(--accent-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.sf-font-p {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.65;
}

.sf-ul-style-start {
    padding-left: 22px;
    margin-bottom: 24px;
}

.sf-ul-style-start li {
    margin-bottom: 8px;
    color: var(--muted);
}

.sf-md-b-1 {
    margin-bottom: 12px !important;
}

.sf-md-b-2 {
    margin-bottom: 20px !important;
}

.table {
    margin-top: 16px;
    margin-bottom: 24px;
}

.table-bordered {
    border: 1px solid var(--line) !important;
    border-radius: 16px;
    overflow: hidden;
}

.table th, .table td {
    border-color: var(--line) !important;
    padding: 14px 16px !important;
}

.table thead th {
    background-color: #f3e8e1 !important;
    color: var(--text) !important;
    font-weight: 750;
}

.table-active {
    background-color: #fcf6f3 !important;
}

/* 404 Error Page Styling */
.error-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.error-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 36px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 680px;
    margin: 0 auto;
}

.error-badge {
    display: inline-block;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-dark);
    margin-bottom: 16px;
    letter-spacing: -.04em;
}

.error-card h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.error-card p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 32px;
}

/* Responsive Queries for Tablet & Mobile */
@media (max-width: 980px) {
    .navlinks a:not(.btn) {
        display: none;
    }

    .hero-grid,
    .why,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 390px;
    }

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

    .cta {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Tablet Footer Optimization: 2-column layout with Brand on top span */
    footer {
        padding: 50px 0 28px;
        margin-top: 60px;
    }

    .footer-grid-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-desc {
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .wrap {
        width: min(100% - 28px, var(--max));
    }

    .nav {
        min-height: 68px;
    }

    .brand small {
        display: none;
    }

    .navlinks .btn {
        display: none;
    }

    .hero {
        padding-top: 50px;
    }

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

    .hero-note {
        grid-template-columns: 1fr;
    }

    section {
        padding: 58px 0;
    }

    .panel,
    .contact-card,
    .cta,
    .page-card,
    .error-card {
        padding: 24px;
    }

    .floating-call {
        display: grid;
    }

    /* Mobile Footer Optimization: 1-column layout with full-width social pills */
    .footer-grid-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-col:first-child {
        grid-column: 1;
    }

    .footer-desc {
        max-width: 100%;
        font-size: 14px;
        margin: 12px 0 16px;
    }

    .footer-socials {
        width: 100%;
    }

    .social-btn-pill {
        flex: 1;
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}