/* ==========================================================================
   CSS SYSTEM - شركة عبدالله بن فهد الدهمش ومشاركوه للمحاماة والاستشارات
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --navy-deep: #0A192F;      /* الكحلي الملكي الداكن جداً */
    --navy-medium: #112240;    /* الكحلي المتوسط للبطاقات */
    --navy-light: #1E3A5F;     /* الكحلي الفاتح للتأثيرات والتحديد */
    --gold-primary: #C5A880;   /* الذهبي الكلاسيكي الهادئ */
    --gold-bright: #D4AF37;    /* الذهبي اللامع للتأثيرات والتنبيهات */
    --gold-dark: #AA7C11;      /* الذهبي الغامق للتدرجات */
    --white: #FFFFFF;          /* اللون الأبيض الصافي */
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A880 50%, #A37E4C 100%);
    --navy-gradient: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    
    /* Text Colors */
    --text-dark: #2D3748;      /* النص الأساسي في الأقسام الفاتحة */
    --text-muted: #718096;     /* النص الفرعي في الأقسام الفاتحة */
    --text-light: #F8FAFC;     /* النص الأساسي في الأقسام الداكنة - أبيض ناصع */
    --text-gray: #CBD5E1;      /* النص الفرعي في الأقسام الداكنة - رمادي فاتح واضح */
    
    /* Backgrounds */
    --bg-light: #F7FAFC;       /* خلفية الأقسام الفاتحة */
    --bg-white: #FFFFFF;       /* خلفية بطاقات الأقسام الفاتحة */
    
    /* Typography */
    --font-primary: 'Alyamama', sans-serif;
    --font-heading: 'Alyamama', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 10px 30px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 25, 47, 0.15);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
    
    /* Layout Constants */
    --header-height: 90px;
    --border-radius: 12px;
}

/* ==========================================================================
   Global Resets & Setup
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    text-align: right;
    overflow-x: hidden;
    width: 100%;
}

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

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

ul {
    list-style: none;
}

input, select, textarea, button {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-bright);
}

/* Selection color */
::selection {
    background-color: var(--gold-primary);
    color: var(--navy-deep);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-primary) !important; }
.text-navy { color: var(--navy-deep) !important; }
.text-white { color: var(--white) !important; }

/* SVG Icon Coloring Utility */
.svg-gold {
    width: 24px;
    height: 24px;
    fill: var(--gold-primary);
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--navy-deep);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    background-color: var(--gold-bright);
}

.btn-navy {
    background: var(--navy-deep);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy-deep);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Components */
.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    margin-bottom: 10px;
    position: relative;
    padding-right: 35px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 2px;
    background-color: var(--gold-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-deep);
}

.section-desc {
    max-width: 650px;
    margin: 15px auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--gold-primary);
    margin-top: 15px;
    margin-bottom: 20px;
}

.section-divider.center {
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================================
   Header / Sticky Navbar
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

/* When header is sticky after scroll */
.main-header.sticky {
    height: 75px;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.5);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.sticky .logo-img {
    height: 44px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    opacity: 1;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-smooth);
}

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

/* Mobile Toggle button */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    background: url('assets/images/hero_bg.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(17, 34, 64, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 120px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 750px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 620px;
}

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

/* Features bar nested inside Hero footer */
.features-bar {
    position: relative;
    z-index: 2;
    background-color: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(197, 168, 128, 0.25);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding: 30px 0;
    width: 100%;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background-color: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    background-color: var(--gold-primary);
    transform: translateY(-3px);
}

.feature-item:hover .feature-icon .svg-gold {
    fill: var(--navy-deep);
}

.feature-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.feature-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: 15px;
}

.about-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 200px;
    height: 200px;
    border-left: 5px solid var(--gold-primary);
    border-bottom: 5px solid var(--gold-primary);
    border-radius: 0 0 0 var(--border-radius);
    z-index: 1;
    pointer-events: none;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-stats-mini {
    display: flex;
    gap: 40px;
    margin-top: 15px;
    margin-bottom: 35px;
    border-top: 1px solid rgba(113, 128, 150, 0.15);
    padding-top: 25px;
    width: 100%;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-stat::before {
    content: '\2713';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-label {
    font-size: 0.95rem;
    color: var(--navy-deep);
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(160, 174, 192, 0.15);
    border-radius: var(--border-radius);
    padding: 28px 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.08);
    border: 1px dashed rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--navy-deep);
    border-color: var(--navy-deep);
    transform: scale(1.05);
}

.service-card:hover .service-icon-box .svg-gold {
    fill: var(--gold-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Service Bullet points for High Data Density */
.service-bullets {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1.5px dashed rgba(197, 168, 128, 0.2);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.service-bullets li {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-right: 18px;
    line-height: 1.4;
}

.service-bullets li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: -1px;
    color: var(--gold-primary);
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   Motto / Geometric Banner Section
   ========================================================================== */
.motto-section {
    position: relative;
    padding: 90px 0;
    background: var(--navy-gradient);
    color: var(--white);
    border-top: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
    overflow: hidden;
}

/* النقش الهندسي: شبكة معيّنات ذهبية خفيفة منفّذة بالكامل بـ CSS */
.motto-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(197, 168, 128, 0.12) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(197, 168, 128, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at center, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 100% at center, #000 25%, transparent 75%);
    pointer-events: none;
}

.motto-container {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.motto-emblem {
    width: auto;
    height: 90px;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

/* فاصل زخرفي بخطين ومعيّن في المنتصف */
.motto-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.motto-divider span {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(to var(--_dir, left), var(--gold-primary), transparent);
}

.motto-divider span:last-child {
    background: linear-gradient(to right, var(--gold-primary), transparent);
}

.motto-divider span:first-child {
    background: linear-gradient(to left, var(--gold-primary), transparent);
}

.motto-divider i {
    width: 9px;
    height: 9px;
    background-color: var(--gold-primary);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.motto-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--white);
    max-width: 800px;
    margin-bottom: 18px;
}

.motto-text .text-gold,
.motto-sub {
    color: var(--gold-primary);
}

.motto-sub {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-gray);
    max-width: 620px;
    line-height: 1.8;
}



/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-card {
    flex: 0 1 calc(25% - 23px);
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(160, 174, 192, 0.15);
    padding: 35px 25px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.team-info {
    flex-grow: 1;
}

.team-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 8px;
}

.team-info .role {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.6;
}

.team-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(160, 174, 192, 0.2);
    width: 100%;
    justify-content: center;
}

.team-social a {
    width: 38px;
    height: 38px;
    background-color: var(--bg-light);
    color: var(--navy-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.team-social a:hover {
    background-color: var(--gold-primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================================================
   Contact / Consultation Section
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    position: relative;
    color: var(--white);
}

/* Background logo watermark effect */
.contact-section::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 250px;
    height: 250px;
    background: url('assets/images/logo_vertical_gold.png') no-repeat center center/contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-top: 15px;
    margin-bottom: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.info-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.contact-link {
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--gold-primary);
}

/* Consultation Form wrapper */
.contact-form-wrapper {
    background-color: rgba(23, 42, 69, 0.85);
    border: 1px solid rgba(197, 168, 128, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group label .required {
    color: var(--gold-bright);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(160, 174, 192, 0.25);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.15);
}

/* Explicit Placeholder Styling for Contrast */
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #A0AEC0;
    opacity: 0.9;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C5A880' d='M10.293,3.293,6,7.586,1.707,3.293A1,1,0,0,0,.293,4.707l5,5a1,1,0,0,0,1.414,0l5-5a1,1,0,1,0-1.414-1.414Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
}

.form-group textarea {
    resize: none;
}

/* Alert Notification classes */
.form-alert {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    text-align: center;
}

.form-alert.success {
    background-color: rgba(72, 187, 120, 0.15);
    border: 1px solid #48bb78;
    color: #48bb78;
    display: block;
}

.form-alert.error {
    background-color: rgba(245, 101, 101, 0.15);
    border: 1px solid #f56565;
    color: #f56565;
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--navy-deep);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    color: #CCD6F6;
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #A0AEC0;
}

.footer-top h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-top h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background-color: var(--gold-primary);
}

.footer-links ul, .footer-services-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-services-links a {
    font-size: 0.9rem;
    color: #CCD6F6;
    transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-services-links a:hover {
    color: var(--gold-primary);
    transform: translateX(-5px);
    display: inline-block;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    transition: var(--transition-smooth);
}

.footer-contact a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(160, 174, 192, 0.1);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-social-icons a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-icons a:hover {
    background-color: var(--gold-primary);
    color: var(--navy-deep);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Back to top & Utilities
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold-primary);
    color: var(--navy-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Scroll Animation states triggered by JS */
.animate-up, .animate-left, .animate-right {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.animate-up { transform: translateY(40px); }
.animate-left { transform: translateX(-40px); }
.animate-right { transform: translateX(40px); }

.animate-up.revealed,
.animate-left.revealed,
.animate-right.revealed {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

/* Laptop and Medium Screens */
@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-img {
        height: 380px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card {
        flex-basis: calc(50% - 15px);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablet & Mobile Menu Trigger */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Mobile Menu Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--navy-deep);
        border-left: 1px solid rgba(197, 168, 128, 0.2);
        padding: 100px 30px;
        z-index: 1000;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-item {
        gap: 10px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
    }

    .feature-icon .svg-gold {
        width: 20px;
        height: 20px;
    }

    .feature-info h3 {
        font-size: 0.95rem;
    }

    .feature-info p {
        font-size: 0.75rem;
    }
    
    .motto-text {
        font-size: 1.65rem;
    }

    .header-cta {
        display: none; /* Hide top cta on mobile */
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        max-width: 400px;
    }

    .hero-actions .btn {
        padding: 10px 8px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .service-card p {
        font-size: 0.88rem;
    }

    .service-bullets li {
        font-size: 0.8rem;
    }
    
    .team-grid {
        gap: 14px;
    }

    .team-card {
        flex-basis: calc(50% - 7px);
        padding: 24px 14px 20px;
    }

    .team-info h3 {
        font-size: 0.95rem;
    }

    .team-info .role {
        font-size: 0.75rem;
    }

    .team-social a {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .motto-section {
        padding: 60px 0;
    }

    .motto-emblem {
        height: 64px;
    }

    .motto-text {
        font-size: 1.35rem;
    }

    .motto-sub {
        font-size: 0.95rem;
    }

    .motto-divider span {
        width: 40px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
