:root {
    --primary-color: #2e388d; 
    --secondary-color: #F7F5F2; 
    --accent1-color: #e1ab41; 
    --accent2-color: #606261;
    --white-color: #FFFFFF;
    --text-color: #36322F;
    --light-text-color: #5c5753;
    --border-color: #e0dcd7;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
}

*, *::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-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 75ch;
}

a {
    color: var(--accent2-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, .learn-more:hover {
    color: var(--accent1-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.main-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo:hover {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent1-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--secondary-color);
    z-index: 999;
    padding: 2rem;
    text-align: center;
}

.mobile-nav-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.mobile-nav-menu nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}
.mobile-nav-menu nav a.sub-link {
    font-size: 1.2rem;
    color: var(--light-text-color);
    padding-left: 1rem;
}


main {
    padding-top: var(--header-height);
}

.content-section {
    padding: 6rem 0;
}

.alternate-bg {
    background-color: var(--white-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--light-text-color);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-accent {
    background-color: var(--accent1-color);
    color: var(--white-color);
    border-color: var(--accent1-color);
}

.btn-accent:hover {
    background-color: #a57b37;
    border-color: #a57b37;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(180, 138, 62, 0.2);
}

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

.full-width {
    width: 100%;
    display: block;
}

.learn-more {
    font-weight: 500;
    color: var(--accent2-color);
    display: inline-block;
}

.learn-more span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.learn-more:hover span {
    transform: translateX(5px);
}

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-align: center;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.6);
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.value-prop-section .value-prop-content {
    text-align: center;
    max-width: 80ch;
    margin: 0 auto 4rem auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent1-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white-color);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.service-card i {
    color: var(--accent1-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--light-text-color);
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.credibility-image img {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.credibility-content .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent1-color);
    margin-bottom: 1rem;
}

.insight-snippet {
    border-left: 3px solid var(--accent1-color);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.insight-snippet h4 {
    color: var(--accent2-color);
}

.final-cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.final-cta-section h2 {
    color: var(--white-color);
}
.final-cta-section p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}


.main-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col#footer-brand p {
    color: rgba(247, 245, 242, 0.7);
    max-width: 35ch;
}
.footer-col#footer-brand .logo {
    color: var(--white-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a, .footer-col p {
    color: rgba(247, 245, 242, 0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(247, 245, 242, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(247, 245, 242, 0.5);
}

.page-header {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--white-color);
}

.page-header h1 {
    max-width: 25ch;
    margin-left: auto;
    margin-right: auto;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--light-text-color);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.mission-vision-section h2 {
    color: var(--accent2-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2rem;
}

.value-card i {
    width: 40px;
    height: 40px;
    color: var(--accent1-color);
    margin-bottom: 1rem;
}

.team-preview-section .team-cta {
    text-align: center;
    margin-top: 3rem;
}

.team-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.team-member-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.team-member-preview p {
    color: var(--light-text-color);
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.team-member-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.team-member-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.team-member-info h4 {
    margin-top: 0;
    color: var(--accent1-color);
}

.services-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.service-hub-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}
.service-hub-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transform: translateY(-5px);
}
.service-hub-icon i {
    width: 40px;
    height: 40px;
    color: var(--accent1-color);
}
.service-hub-content h3 {
    margin-bottom: 0.5rem;
}
.service-hub-content p {
    margin-bottom: 1rem;
}

.service-detail-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.service-detail-header h1, .service-detail-header p {
    color: var(--white-color);
}
.service-detail-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.service-detail-header .breadcrumb a:hover {
    color: var(--white-color);
}

.two-col-layout-reversed {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.service-main-content ul {
    list-style: none;
    margin-top: 2rem;
}
.service-main-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.service-main-content ul i {
    color: var(--accent2-color);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.service-sidebar .sidebar-block {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.service-sidebar h3 {
    border-bottom: 2px solid var(--accent1-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.related-services ul li {
    margin-bottom: 0.5rem;
}

.service-cta-section {
    text-align: center;
}

.insights-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.insight-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.insight-card-image {
    height: 200px;
}
.insight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.insight-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.insight-meta {
    font-size: 0.8rem;
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
}
.insight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.insight-excerpt {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.insight-card .learn-more {
    margin-top: auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent1-color);
    box-shadow: 0 0 0 2px rgba(180, 138, 62, 0.2);
}
.contact-details-wrapper {
    background-color: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.contact-info {
    padding: 2rem;
}
.contact-info h3 {
    margin-top: 1.5rem;
}
.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-info i {
    width: 20px;
    height: 20px;
    color: var(--accent1-color);
}
.map-placeholder {
    height: 250px;
    background-color: #e0dcd7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#form-success-message {
    background: #e6f9f0;
    border: 1px solid #004225;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
}
#form-success-message h3 {
    color: #004225;
}
.error-message {
    color: #d9534f;
    font-size: 0.875rem;
    display: none;
}
.form-group.error input,
.form-group.error textarea {
    border-color: #d9534f;
}
.form-group.error .error-message {
    display: block;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col-layout { grid-template-columns: 1fr; }
    .two-col-layout-reversed { grid-template-columns: 1fr; }
    .credibility-image { order: -1; }
    .service-sidebar { order: -1; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .hide-mobile { display: none; }
    .main-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .mobile-nav-menu.active { display: block; }
    .container { padding: 0 1rem; }
    .content-section { padding: 4rem 0; }
    .hero-section { height: 60vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .stats-grid, .team-preview-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }
    .footer-col#footer-brand p { margin: 0 auto; }
    .team-member-card { grid-template-columns: 1fr; text-align: center; }
    .team-member-card img { margin: 0 auto; }
    .service-hub-card { flex-direction: column; align-items: center; text-align: center; }
}
/* Header layout */
.main-header .container {
  display: flex;
  align-items: center;           /* vertically center logo + nav */
  gap: 1rem;
  min-height: 64px;              /* desired header height */
  padding: 0.5rem 1rem;
}

/* Constrain the logo box */
.logo {
  display: inline-flex;          /* don’t let anchor expand line-height */
  align-items: center;
  height: 48px;                  /* <= your target visual height */
  overflow: hidden;              /* crop any extra whitespace in asset */
}

/* Constrain the image itself */
.logo img,
.logo .logo-img {
  display: block;
  max-height: 100%;              /* never exceed .logo height */
  width: auto;                   /* keep aspect ratio */
}

/* Keep the nav on one line and aligned */
.main-nav {
  margin-left: auto;             /* pushes nav to the right */
}
.main-nav ul {
  display: flex;
  align-items: center;           /* centers links relative to logo */
  gap: 1rem;
}

/* Mobile: slightly smaller logo so the burger doesn’t wrap */
@media (max-width: 1024px) {
  .main-header .container { min-height: 56px; }
  .logo { height: 40px; }
}
.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}
