/* ══════════════════════════════════════════════════════════════════════════════
   ROBERTS INCORPORATED - HEADER & FOOTER STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* Global Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* ── SITE HEADER ─────────────────────────────────────────────────────────────── */

.site-header {
    background: #111b2c;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 100%;
    margin: 0;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding-left: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav > a,
.main-nav .nav-dropdown {
    position: relative;
}

.main-nav > a,
.main-nav .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    display: block;
}

.main-nav > a:hover,
.main-nav .dropdown-toggle:hover {
    color: #DDE5F3;
}

.main-nav > a.active {
    color: #fff;
}

.main-nav > a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

/* Dropdown arrow */
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.3s, border-top-color 0.3s;
}

.dropdown-toggle:hover::after {
    border-top-color: #DDE5F3;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a2332;
    min-width: 280px;
    padding: 10px 0;
    margin-top: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #DDE5F3;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

/* ── HERO SECTION ────────────────────────────────────────────────────────────── */

.hero-section {
    background: url('https://robertsinc.co.za/wp-content/uploads/2022/11/RobertsInc-Conveyancing.jpg') center/cover;
    padding: 100px 0;
    text-align: center;
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   background: linear-gradient(135deg, rgba(19, 39, 67, 0.8), rgba(19, 39, 67, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: #fff;
    font-size: 56px;
    font-weight: 300;
    margin: 0;
    letter-spacing: -1px;
}

/* ── INTRODUCTION SECTION ────────────────────────────────────────────────────── */

.intro-section {
    background: #fff;
    padding: 50px 20px;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.intro-container p {
    margin: 0 0 15px;
}

.intro-container strong {
    color: #1a2332;
}

/* ── CALCULATOR WRAPPER ──────────────────────────────────────────────────────── */

.tws-calc-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

/* ── DISCLAIMER SECTION ──────────────────────────────────────────────────────── */

.disclaimer-section {
    background: #f9f9f9;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
}

.disclaimer-container {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.7;
}

/* ── CALCULATOR INFO SECTION ─────────────────────────────────────────────────── */

.calculator-info-section {
    background: #fff;
    padding: 50px 20px;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-container h2 {
    font-size: 28px;
    color: #1a2332;
    margin: 0 0 30px;
    font-weight: 600;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 16px;
    color: #9F2121;
    margin: 0 0 5px;
    font-weight: 600;
}

.info-item p {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* ── SITE FOOTER ─────────────────────────────────────────────────────────────── */

.site-footer {
    background: #111b2c;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-reg {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.footer-col h3 {
    font-size: 18px;
    margin: 0 0 20px;
    font-weight: 600;
    color: #fff;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    font-size: 16px;
    opacity: 0.8;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-icon-white {
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-links a,
.footer-contact a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #DDE5F3;
}

.footer-contact li {
    color: #ccc;
    font-size: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* ── MOBILE RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a2332;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        align-items: stretch;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav > a,
    .main-nav .nav-dropdown {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav > a.active::after {
        display: none;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        margin-top: 10px;
        padding: 0;
        min-width: 0;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 13px;
        border-left: 2px solid rgba(255,255,255,0.2);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}