/* =========================================
   CSS Variables & Reset
========================================= */
:root {
    --primary-blue: #1559ed;
    --primary-red: #e3000f;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-overlay: transparent;
    --nav-bg: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* =========================================
   Navigation Bar
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu > li > a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3A4F66;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width var(--transition-speed) ease;
}

.menu > li > a:hover::after,
.menu > li > a.active::after {
    width: 100%;
}

.menu > li > a:hover,
.menu > li > a.active {
    color: var(--primary-blue);
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
    display: inline-block;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 10px 25px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
}

.dropdown li a:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
    padding-left: 30px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('Images/Mission-Noxa-Mic.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px; /* Offset for navbar */
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* =========================================
   Footer
========================================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer img {
    height: 45px;
    width: auto;
    display: block;
}

/* =========================================
   Animations
========================================= */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1250px) {
    .menu {
        gap: 15px;
    }
    .menu > li > a {
        font-size: 0.85rem;
    }
}

@media (max-width: 1150px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        padding-top: 90px;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
        gap: 0;
    }
    
    .menu > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .menu > li > a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 15px 15px;
        border-radius: 0;
    }
    
    .has-dropdown.open .dropdown {
        display: block;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .footer {
        justify-content: center;
        padding: 15px;
    }
}

/* =========================================
   Internal Pages (Team, etc)
========================================= */
.page-content {
    background: #f8f9fa;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a2b4c;
    margin-bottom: 30px;
}

.team-intro {
    font-size: 1.05rem;
    color: #5c6b8c;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 900px;
}

.team-intro p {
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    display: flex;
    flex-direction: column;
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    background: #ffffff;
}

.team-member h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #5c6b8c;
    margin-bottom: 5px;
}

.team-member h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3A4F66;
}

/* =========================================
   Carousel Styles
========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px; /* Spacing between images */
}

.carousel-slide {
    min-width: calc((100% - 30px) / 3); /* 3 images visible, 2 gaps of 15px */
    flex: 0 0 calc((100% - 30px) / 3);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* =========================================
   Property Page Text Styles
========================================= */
.subtitle-tags {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5c6b8c;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.page-body-text {
    font-size: 1.05rem;
    color: #5c6b8c;
    line-height: 1.8;
    max-width: 1000px;
}

.page-body-text p {
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .carousel-slide {
        min-width: calc((100% - 15px) / 2); /* 2 images visible on tablet */
        flex: 0 0 calc((100% - 15px) / 2);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        min-width: 100%; /* 1 image visible on mobile */
        flex: 0 0 100%;
    }
}

/* =========================================
   Sectors Layout
========================================= */
.sectors-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.sectors-list ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #5c6b8c;
    font-size: 1.05rem;
    line-height: 1.8;
}

.sectors-list li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .sectors-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Notify a Claim Layout
========================================= */
.notify-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.notify-contact {
    text-align: right;
    color: #5c6b8c;
    font-size: 1.05rem;
    line-height: 1.8;
}

.notify-contact p {
    margin-bottom: 12px;
}

.notify-title {
    font-weight: 800;
    color: #1c2b4c;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 25px !important;
}

.notify-process {
    text-align: left;
    color: #5c6b8c;
    font-size: 1.05rem;
    line-height: 1.8;
}

.notify-process p {
    margin-bottom: 20px;
}

.notify-process strong {
    color: #1c2b4c;
    font-weight: 800;
}

@media (max-width: 900px) {
    .notify-layout {
        grid-template-columns: 1fr;
    }
    .notify-contact {
        text-align: left;
    }
}

/* =========================================
   Loss Adjusting Layout
========================================= */
.loss-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.loss-column {
    text-align: left;
    color: #5c6b8c;
    font-size: 1.05rem;
    line-height: 1.8;
}

.loss-column p {
    margin-bottom: 20px;
}

.loss-title {
    font-weight: 800;
    color: #1c2b4c;
    font-size: 1.05rem;
    margin-bottom: 25px !important;
}

.loss-column strong {
    font-weight: 800;
    color: #5c6b8c;
}

@media (max-width: 900px) {
    .loss-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Contact Us Layout
========================================= */
.contact-page {
    padding-top: 100px; /* offset header */
}

.contact-hero {
    width: 100%;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.contact-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-info {
    width: 100%;
    max-width: 380px;
    background-color: rgba(9, 9, 9, 0.42); /* Match Elementor semi-transparent dark */
    padding: 40px;
    text-align: right;
    color: #ffffff;
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-info {
        max-width: 100%;
        text-align: center;
        padding: 30px 20px;
    }
    .contact-hero {
        align-items: flex-start;
        padding-top: 40px;
    }
}

/* =========================================
   History Layout
========================================= */
.history-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.history-content {
    color: #5c6b8c;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.history-content p {
    margin-bottom: 25px;
}

.history-content strong {
    font-weight: 800;
    color: #5c6b8c; /* keeping same color, just bold */
}

.history-image {
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .history-layout {
        grid-template-columns: 1fr;
    }
    .history-image {
        min-height: 400px;
    }
}
