/* ===================================
   KTH Law Website Clone - Styles
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-green: #447848;
    --primary-green-dark: #3a6a3e;
    --primary-green-light: #5a9a5f;
    --bg-light: #F8F7F3;
    --bg-beige: #EBded4;
    --bg-beige-dark: #d9c9bc;
    --bg-dark: #181818;
    --bg-dark-light: #232323;
    --text-dark: #121212;
    --text-secondary: #62615C;
    --text-light: #ffffff;
    --accent-gold: #F9C349;

    /* Typography */
    --font-primary: 'Assistant', 'Open Sans', sans-serif;
    --font-secondary: 'Domine', serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 100px;
    --section-padding: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    direction: rtl;
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 247, 243, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(248, 247, 243, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

/* Phone Button */
.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-green);
    border-radius: 5px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 28px;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    background: var(--primary-green);
    color: white;
}

.phone-btn i {
    font-size: 14px;
}

/* Navigation */
.nav-menu {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-list a {
    font-size: 30px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/images/hero-bg.jpg') center center / cover no-repeat;
    position: relative;
    padding: var(--header-height) 20px;
    overflow-x: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(248, 247, 243, 0.85), rgba(248, 247, 243, 0.5));
}

/* Watermark initials */
.hero::after {
    content: 'KH';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25rem;
    font-weight: 300;
    color: rgba(68, 120, 72, 0.06);
    font-family: var(--font-secondary);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

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

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    width: 200px;
    height: auto;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    max-width: 280px;
    height: auto;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 6rem);
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary-green);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(68, 120, 72, 0.3);
}

.cta-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(-5px);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 50px;
}

.section-title.light {
    color: var(--text-light);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.services-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: var(--bg-beige);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 1 350px;
    max-width: 350px;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-icon i {
    font-size: 28px;
    color: var(--primary-green);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: inherit;
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.service-card-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.service-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--primary-green);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--primary-green-dark);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    position: relative;
    padding: var(--section-padding) 0;
    background: url('assets/images/about-bg.jpg') center center / cover no-repeat;
    color: var(--text-light);
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 24, 24, 0.9);
}

.about-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 25px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.about-image {
    flex: 0 0 300px;
}

.about-image img {
    max-width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ===================================
   ADVANTAGES SECTION
   =================================== */
.advantages {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.advantage-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-beige);
    border-radius: 10px;
    margin-bottom: 20px;
}

.advantage-icon i {
    font-size: 24px;
    color: var(--primary-green);
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.advantage-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Map Section */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    display: block;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    position: relative;
    padding: var(--section-padding) 0;
    background: url('assets/images/contact-bg.jpg') center center / cover no-repeat;
    color: var(--text-light);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 24, 24, 0.95);
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-info-card {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 2px solid var(--primary-green);
}

.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-info-card ul {
    list-style: none;
}

.contact-info-card li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info-card li i {
    color: var(--primary-green);
    font-size: 16px;
}

.contact-info-card a {
    color: rgba(255, 255, 255, 0.85);
}

.contact-info-card a:hover {
    color: var(--primary-green);
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    direction: rtl;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--primary-green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-btn {
    align-self: center;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-dark);
    padding: 25px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    font-weight: 500;
}

.success-msg {
    color: #4BB543;
    background: rgba(75, 181, 67, 0.1);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #4BB543;
}

.error-msg {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ff3333;
}

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    font-size: 32px;
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .advantage-card {
        padding: 20px 15px;
    }

    .advantage-card h3 {
        font-size: 1rem;
    }

    .advantage-card p {
        font-size: 12px;
    }
}

@media (max-width: 992px) {


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

    .hero-main {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero-image img {
        max-width: 200px;
    }

    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-image {
        flex: 0 0 auto;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo img {
        height: 50px;
    }

    .phone-btn span {
        display: none;
    }

    .phone-btn {
        padding: 10px 12px;
    }

    .services-row {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 450px;
    }

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

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
        z-index: 10000;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .advantage-card {
        padding: 25px 20px;
    }
}