/* 
   Theme: content + Green/Blue Professional Mortgage Website
   Font: Poppins
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #008080;
    /* Teal */
    --secondary-color: #00bfaf;
    /* Cyan/Teal Light */
    --accent-blue: #007bff;
    /* Blue */
    --dark-green: #004d40;
    --light-bg: #f8fbff;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-max-width: 1200px;
    --header-height: 90px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 25px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 128, 128, 0.3);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    background-color: var(--light-bg);
    transform: translateY(-3px);
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    height: var(--header-height);
    background-color: transparent;
    transition: var(--transition);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

header.scrolled .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: var(--transition);
}

header.scrolled .nav-links a:not(.btn)::after {
    background-color: var(--primary-color);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--white);
}

header.scrolled .hamburger {
    color: var(--primary-color);
}

/* Hero Section */
/* Hero Section */
.hero {
    padding: 20px 0;
    margin-top: 0;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, rgba(0, 51, 51, 0.9), rgba(0, 77, 64, 0.85)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 191, 175, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Text Side */
.hero-text {
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-btns .btn i {
    margin-left: 8px;
    font-size: 0.9em;
}

.hero-btns .btn-light i {
    margin-left: 0;
    margin-right: 8px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator {
    display: flex;
    flex-direction: column;
}

.indicator-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.indicator-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.indicator-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual Side */
.hero-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    padding: 20px;
}

.visual-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 128, 128, 0.1);
    border-radius: 30px;
    transform: rotate(-5deg);
    z-index: 0;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
    height: 600px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: 60px;
    left: -40px;
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    max-width: 250px;
    animation: float 5s ease-in-out infinite;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-content strong {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 2px;
}

.card-content span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Page Hero (Sub-pages) */
.page-hero {
    margin-top: 0;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, rgba(0, 64, 64, 0.9), rgba(0, 40, 50, 0.93));
    background-size: cover;
    background-position: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
}

.page-hero .hero-content {
    text-align: center;
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .hero-content h1 {
    font-size: 3.2rem;
    color: var(--white);
    animation: fadeUp 0.8s ease-out forwards;
}

.page-hero .hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

/* Services Grid */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 40px 30px 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.08), rgba(0, 191, 175, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-item:hover .service-icon-wrap {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-icon-wrap i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-item:hover .service-icon-wrap i {
    color: var(--white);
}

.service-item h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-section {
    background: var(--white);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-green));
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 128, 128, 0.2);
}

.stat-item {
    color: var(--white);
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: start;
}

.why-choose-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.why-feature-card:hover {
    background: var(--white);
    border-color: rgba(0, 128, 128, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.why-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.why-feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.why-feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.why-choose-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FBAA Badge */
.fbaa-badge {
    text-align: center;
    padding: 50px 35px;
    border: none;
    background: var(--light-bg);
    border-radius: 20px;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 128, 128, 0.1);
}

.fbaa-badge i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.fbaa-badge h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.fbaa-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.accredited {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 25px;
    display: inline-block;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* About Page Sections */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-story-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.about-story-image img {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    object-fit: cover;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-card .value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.08), rgba(0, 191, 175, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-card .value-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Team Card */
.team-card {
    background: var(--white);
    max-width: 420px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    border: 4px solid var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.team-card .credentials {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-card .team-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 15px;
    margin-top: 5px;
}

/* Service Page Detail Cards */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail.reversed {
    direction: rtl;
}

.service-detail.reversed>* {
    direction: ltr;
}

.service-detail-image img {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    object-fit: cover;
}

.service-detail-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.service-detail-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-detail-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-detail-content ul li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-detail-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Process Steps */
.process-section {
    background: var(--light-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.process-step {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.process-number {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    font-weight: 800;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-color));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.cta-section p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #0b1a15;
    color: #fff;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-col p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.8;
}

.crn-info,
.rep-info {
    font-size: 0.85rem !important;
    opacity: 0.6;
    margin-top: 15px;
}

.footer-links li {
    margin-bottom: 18px;
    color: #a0a0a0;
}

.footer-links a {
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(8px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* Animations Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-20px) rotate(15deg);
    }

    100% {
        transform: translateY(0) rotate(15deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-content h1,
    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .trust-badge {
        margin: 0 auto 25px;
    }

    .trust-indicators {
        justify-content: center;
    }

    .hero-img {
        max-width: 600px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .floating-card {
        left: 5%;
        bottom: 30px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .about-story,
    .service-detail,
    .service-detail.reversed {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .page-hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        text-align: center;
        padding-top: 100px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-badge {
        width: 110px;
        height: 110px;
        top: 12%;
        right: 5%;
    }

    .hero-badge span {
        font-size: 1.5rem;
    }

    .hero-content {
        text-align: center;
        padding-left: 0;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .values-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
}