@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
    --primary-color: #5a7a6d;
    --secondary-color: #7a9989;
    --accent-color: #f5f1ed;
    --cream-bg: #fef9f5;
    --text-color: #3d3d3d;
    --light-text: #6b6b6b;
    --border-color: #e8ddd3;
    --hover-color: #466258;
    --warm-accent: #e8d4c4;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--cream-bg);
}

/* ===== HEADER & NAV ===== */
header {
    background-color: white;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(90, 122, 109, 0.12);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    height: var(--header-height);
}

.logo-link {
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.45rem;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.03);
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--warm-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

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

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

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: var(--accent-color);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(145deg, #3d5c51 0%, var(--primary-color) 45%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 5% 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    animation: float-particle linear infinite;
}

.hero-particles span:nth-child(1)  { width:80px;  height:80px;  left:8%;  top:15%; animation-duration:14s; animation-delay:0s; }
.hero-particles span:nth-child(2)  { width:130px; height:130px; left:72%; top:8%;  animation-duration:18s; animation-delay:2s; }
.hero-particles span:nth-child(3)  { width:55px;  height:55px;  left:38%; top:62%; animation-duration:11s; animation-delay:4s; }
.hero-particles span:nth-child(4)  { width:95px;  height:95px;  left:85%; top:45%; animation-duration:20s; animation-delay:1s; }
.hero-particles span:nth-child(5)  { width:65px;  height:65px;  left:18%; top:72%; animation-duration:16s; animation-delay:3s; }
.hero-particles span:nth-child(6)  { width:40px;  height:40px;  left:58%; top:28%; animation-duration:12s; animation-delay:5s; }
.hero-particles span:nth-child(7)  { width:110px; height:110px; left:3%;  top:42%; animation-duration:22s; animation-delay:2.5s; }
.hero-particles span:nth-child(8)  { width:75px;  height:75px;  left:92%; top:78%; animation-duration:15s; animation-delay:1.5s; }
.hero-particles span:nth-child(9)  { width:48px;  height:48px;  left:28%; top:88%; animation-duration:10s; animation-delay:6s; }

@keyframes float-particle {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.07; }
    50%  { opacity: 0.14; }
    100% { transform: translateY(-120px) rotate(180deg); opacity: 0.04; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 1.2rem;
    animation: slideDown 0.8s ease-out both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    animation: slideDown 0.8s ease-out 0.1s both;
}

.typing-container {
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.typing-text {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.cursor {
    font-size: 1.4rem;
    opacity: 0.8;
    animation: blink 0.75s step-end infinite;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 0.8; }
    50%       { opacity: 0; }
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: slideDown 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.35s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary-color);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border-color: rgba(255,255,255,0.55);
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: white;
    padding: 3.5rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.4rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-suffix {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--light-text);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding-top: 5rem;
    margin-bottom: 0;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

section h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.9rem auto 2.8rem;
    border-radius: 3px;
}

/* ===== ABOUT ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.55rem;
}

.credentials-heading {
    margin-top: 1.8rem !important;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--light-text);
    line-height: 1.85;
    font-size: 0.96rem;
}

.credentials {
    list-style: none;
    margin-top: 0.5rem;
}

.credentials li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--light-text);
    font-size: 0.93rem;
    transition: all 0.25s ease;
    border-bottom: 1px solid transparent;
}

.credentials li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.25s ease;
}

.credentials li:hover {
    color: var(--primary-color);
    padding-left: 2.4rem;
}

.credentials li:hover::before {
    transform: scale(1.2);
}

.about-image {
    position: relative;
    padding: 1rem;
}

.about-image-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(90, 122, 109, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(90, 122, 109, 0.25);
}

.about-image-inner img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--warm-accent);
    border-radius: 20px;
    transform: translate(12px, 12px);
    z-index: -1;
    transition: transform 0.4s ease;
}

.about-image:hover::before {
    transform: translate(16px, 16px);
}

.about-image-badge {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(90, 122, 109, 0.35);
    letter-spacing: 0.3px;
}

.about-image-badge svg {
    width: 14px;
    height: 14px;
    stroke: white;
    flex-shrink: 0;
}

/* ===== RESEARCH INTERESTS ===== */
.research-section {
    margin: 4rem 0;
}

.research-intro {
    text-align: center;
    color: var(--light-text);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-style: italic;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.research-item {
    background: white;
    border-radius: 14px;
    padding: 1.6rem 1.2rem;
    border: 1px solid rgba(90, 122, 109, 0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(90, 122, 109, 0.12);
}

.research-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color), var(--warm-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.research-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
}

.research-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.research-item p {
    font-size: 0.82rem;
    color: var(--light-text);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .research-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section {
    background: linear-gradient(135deg, rgba(245,241,237,0.8) 0%, white 60%);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    margin: 5rem 0 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px 0 0 3px;
}

.quote-icon {
    width: 32px;
    height: 32px;
    fill: var(--warm-accent);
    margin-bottom: 1.2rem;
}

.philosophy-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.55;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-quote cite {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-text);
    letter-spacing: 0.5px;
    margin-bottom: 1.8rem;
}

.philosophy-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 2rem auto;
    opacity: 0.5;
}

.philosophy-quote--secondary p {
    font-size: 1.25rem;
    opacity: 0.82;
}

.philosophy-quote--secondary cite {
    margin-bottom: 0;
}

.philosophy-desc {
    font-size: 0.97rem;
    color: var(--light-text);
    line-height: 1.85;
    max-width: 580px;
    margin: 0 auto;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: white;
    padding: 2.2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(90, 122, 109, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(122,153,137,0.04) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(90, 122, 109, 0.14);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--accent-color), var(--warm-accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    transition: all 0.35s ease;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary-color);
    transition: stroke 0.35s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.08) rotate(-3deg);
}

.service-card:hover .service-icon svg {
    stroke: white;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    transition: color 0.25s ease;
}

.service-card:hover h3 {
    color: var(--hover-color);
}

.service-card p {
    color: var(--light-text);
    line-height: 1.75;
    font-size: 0.92rem;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

a.contact-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item {
    text-align: center;
    padding: 2rem 1.2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(90, 122, 109, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default;
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(90, 122, 109, 0.13);
    background: linear-gradient(135deg, var(--accent-color) 0%, white 100%);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-color), var(--warm-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
    fill: none;
}

.contact-icon.whatsapp-icon svg {
    stroke: none;
    fill: var(--primary-color);
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact-item:hover .contact-icon svg {
    stroke: white;
}

.contact-item:hover .contact-icon.whatsapp-icon svg {
    stroke: none;
    fill: white;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.contact-item a,
.contact-item p {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.25s ease;
    word-break: break-word;
}

.contact-sub {
    font-size: 0.78rem !important;
    opacity: 0.68;
    margin-top: 0.2rem;
    font-style: italic;
}

.contact-item:hover a,
.contact-item:hover > p {
    color: var(--primary-color);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: white;
    padding: 2.8rem;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(90, 122, 109, 0.07);
    max-width: 680px;
    margin: 0 auto 5rem;
}

.contact-form h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.87rem;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.94rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    background-color: var(--cream-bg);
    color: var(--text-color);
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bdbdbd;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 122, 109, 0.1);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(90, 122, 109, 0.38);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.submit-btn:hover svg {
    transform: translate(3px, -3px);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(145deg, #3d5c51 0%, var(--primary-color) 100%);
    color: white;
    padding: 3.5rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 1.8rem;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto 0.6rem;
}

.footer-brand p {
    font-size: 0.88rem;
    opacity: 0.75;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: white;
    border-bottom-color: rgba(255,255,255,0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-4px) scale(1.08);
}

.social-links a svg {
    fill: white;
    display: block;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 0.8rem;
    opacity: 0.55;
    font-style: italic;
}

/* ===== FLOATING BUTTONS ===== */
.scroll-to-top {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(90, 122, 109, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    z-index: 800;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(90, 122, 109, 0.5);
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    z-index: 800;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-tooltip {
    position: absolute;
    right: 65px;
    background: rgba(0,0,0,0.72);
    color: white;
    padding: 0.38rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    letter-spacing: 0.2px;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ===== RIPPLE ===== */
.cta-button,
.submit-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ===== SCROLL FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger for grids */
.services-grid .fade-in:nth-child(1) { transition-delay: 0.04s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.20s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.08s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.16s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.24s; }

.contact-info .fade-in:nth-child(1) { transition-delay: 0.04s; }
.contact-info .fade-in:nth-child(2) { transition-delay: 0.12s; }
.contact-info .fade-in:nth-child(3) { transition-delay: 0.20s; }
.contact-info .fade-in:nth-child(4) { transition-delay: 0.28s; }

.stats-grid .fade-in:nth-child(1) { transition-delay: 0.04s; }
.stats-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.stats-grid .fade-in:nth-child(3) { transition-delay: 0.20s; }
.stats-grid .fade-in:nth-child(4) { transition-delay: 0.28s; }

/* ===== HERO ANIMATIONS ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 280px;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -6px 0 25px rgba(0,0,0,0.12);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.15rem;
    }

    .hero {
        min-height: 75vh;
        padding: 6rem 5% 4rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        max-width: 380px;
        margin: 0 auto;
    }

    section h2 {
        font-size: 2rem;
    }

    .philosophy-section {
        padding: 3rem 1.8rem;
    }

    .philosophy-quote p {
        font-size: 1.35rem;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 580px) {
    .hero h1 {
        font-size: 1.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 2.3rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-item {
        padding: 1.5rem 1rem;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .footer-logo-img {
        height: 70px;
    }
}

/* ===== LANG TOGGLE ===== */
.lang-toggle {
    background: none;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    margin: 4rem 0;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(90, 122, 109, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(90, 122, 109, 0.12);
}

.testimonial-quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.2;
    font-style: italic;
}

.testimonial-text {
    color: var(--light-text);
    font-size: 0.92rem;
    line-height: 1.75;
    flex: 1;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.testimonial-stars {
    color: #f4b942;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--light-text);
    opacity: 0.75;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
    background: linear-gradient(135deg, #f5f1ed 0%, var(--cream-bg) 100%);
    padding: 5rem 5%;
    text-align: center;
}

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

.instagram-sub {
    color: var(--light-text);
    font-size: 0.92rem;
    margin-bottom: 2.5rem;
}

.instagram-embeds {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto 2.5rem;
    max-width: 1080px;
}

.instagram-embed-wrap {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    max-height: 480px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.instagram-embed-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(245,241,237,0.95));
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

.instagram-embed-wrap .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(90, 122, 109, 0.3);
}

.instagram-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(90, 122, 109, 0.4);
}

@media (max-width: 580px) {
    .instagram-embeds {
        flex-direction: column;
    }
    .instagram-embed-wrap {
        width: 100%;
        max-width: 400px;
        align-self: center;
    }
}

/* ===== RTL / ARABIC ===== */
[lang="ar"] {
    font-family: 'Cairo', sans-serif;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

[lang="ar"] .philosophy-quote p,
[lang="ar"] .philosophy-quote cite {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

[dir="rtl"] .about-content {
    direction: rtl;
}

[dir="rtl"] .credentials li {
    text-align: right;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-author {
    text-align: left;
}

@media (max-width: 768px) {
    [dir="rtl"] nav {
        flex-direction: row;
    }
    [dir="rtl"] .nav-links {
        left: 0;
        right: auto;
        transform: translateX(-100%);
    }
    [dir="rtl"] .nav-links.open {
        transform: translateX(0);
        right: auto;
        left: 0;
    }
}
