/* =========================================
   Reset & Variables Setup (Allsopp & Allsopp Style)
========================================= */
:root {
    --clr-primary: #22322E; /* DG's brand color, but adapted to A&A layout */
    --clr-secondary: #131d1b;
    --clr-accent: #d8b884; /* Subtle gold/beige highlight */
    --clr-bg: #ffffff;
    --clr-bg-light: #f5f7fa;
    --clr-text: #333333;
    --clr-text-light: #666666;
    --clr-white: #ffffff;
    --clr-border: #eaeaea;

    --font-main: 'Montserrat', sans-serif;
    
    --container-width: 1300px;
    --transition: all 0.3s ease;
    --radius: 8px; /* Slight rounded corners characteristic for modern portal like A&A */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--clr-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    color: var(--clr-white);
    margin-bottom: 5px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
    color: var(--clr-text-light);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.text-center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 10px;
    font-weight: 600;
}

/* =========================================
   Layout Reusables
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-secondary);
}

.btn-outline {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-outline-light {
    border-color: var(--clr-white);
    color: var(--clr-white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* =========================================
   Navbar (A&A Clean Corporate Style)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--clr-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-primary);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px; /* Offset for sticky navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}

.hero-content p {
    color: var(--clr-white);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Search Box (Portal specific styling) */
.search-box {
    background: var(--clr-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.search-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.search-tabs .tab {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-light);
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
}

.search-tabs .tab.active {
    color: var(--clr-primary);
}

.search-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--clr-primary);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group {
    flex: 1;
    position: relative;
    background: var(--clr-bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 1px solid var(--clr-border);
}

.input-group i {
    color: var(--clr-text-light);
    margin-right: 10px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 0;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--clr-text);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-search {
    padding: 16px 40px;
}

/* =========================================
   Properties Section
========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 0;
}

.view-all {
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    gap: 12px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: var(--clr-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.property-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-content {
    padding: 20px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 5px;
}

.property-content .title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--clr-text);
}

.location {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--clr-text-light);
}

.amenities {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--clr-border);
    padding-top: 15px;
}

.amenities span {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.amenities i {
    color: var(--clr-primary);
    opacity: 0.7;
}

/* =========================================
   Expertise Section
========================================= */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.expertise-card {
    padding: 40px 30px;
    background: var(--clr-white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.expertise-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--clr-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--clr-primary);
}

.expertise-card h3 {
    margin-bottom: 15px;
}

/* =========================================
   Private Office
========================================= */
.private-office-section {
    background: linear-gradient(rgba(34, 50, 46, 0.9), rgba(34, 50, 46, 0.9)), url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    color: var(--clr-white);
    text-align: center;
}

.private-office-content {
    max-width: 800px;
    margin: 0 auto;
}

.private-office-section h2 {
    color: var(--clr-white);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.private-office-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--clr-secondary);
    color: var(--clr-white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    max-width: 300px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
}

.social-links a:hover {
    background: var(--clr-accent);
}

.footer-links h4 {
    color: var(--clr-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--clr-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =========================================
   SVN Projects Section
========================================= */
.svn-project-card {
    background: var(--clr-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
}

.svn-project-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.svn-project-img {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.svn-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.svn-project-card:hover .svn-project-img img {
    transform: scale(1.02);
}

.svn-project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.svn-project-content .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.svn-project-content .title {
    font-size: 2rem;
    color: var(--clr-text);
    margin-bottom: 5px;
}

.svn-project-content .btn {
    margin-top: 15px;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 992px) {
    .property-grid, .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .input-group, .btn-search {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .property-grid, .expertise-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        height: auto;
        padding: 100px 0;
    }
}