/* =========================================================
   موقع المحامي أحمد محمود
   الهوية البصرية:
   كحلي ملكي + ذهبي معتق + عاجي
========================================================= */

:root {

    --navy-950: #071321;
    --navy-900: #0b1d31;
    --navy-850: #102842;
    --navy-800: #153451;
    --navy-700: #1d4567;

    --gold: #c6a15b;
    --gold-light: #e2c985;
    --gold-dark: #9c793d;

    --ivory: #f8f5ed;
    --ivory-dark: #eee8dc;

    --white: #ffffff;

    --text: #25313b;
    --text-light: #68737d;

    --border: rgba(15, 40, 66, 0.11);

    --shadow-sm:
        0 8px 25px rgba(7, 19, 33, 0.07);

    --shadow:
        0 18px 50px rgba(7, 19, 33, 0.11);

    --shadow-lg:
        0 30px 80px rgba(7, 19, 33, 0.17);

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1200px;

    --transition:
        0.35s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {

    font-family: "Cairo", sans-serif;

    background: var(--ivory);

    color: var(--text);

    line-height: 1.8;

    overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
    font-family: "Cairo", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--gold);
    color: var(--navy-950);
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {

    background:
        linear-gradient(
            90deg,
            var(--navy-950),
            var(--navy-900)
        );

    color: rgba(255,255,255,.86);

    border-bottom:
        1px solid rgba(255,255,255,.06);

    font-size: 13px;
}

.top-bar-inner {

    min-height: 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.top-right span,
.top-left a {

    display: inline-flex;

    align-items: center;

    gap: 9px;
}

.top-bar i {
    color: var(--gold-light);
}

.top-left a {
    transition: var(--transition);
}

.top-left a:hover {
    color: var(--gold-light);
}


/* =========================================================
   HEADER
========================================================= */

.main-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(248,245,237,.96);

    backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(7,19,33,.07);

    transition:
        box-shadow var(--transition),
        background var(--transition);
}

.main-header.scrolled {

    background:
        rgba(255,255,255,.97);

    box-shadow:
        0 10px 35px rgba(7,19,33,.10);
}

.header-inner {

    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;
}

.brand-symbol {

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    color: var(--gold);

    background:
        var(--navy-900);

    border:
        1px solid rgba(198,161,91,.45);

    border-radius: 50%;

    box-shadow:
        0 7px 20px rgba(7,19,33,.16);

    position: relative;
}

.brand-symbol::after {

    content: "";

    position: absolute;

    inset: 4px;

    border:
        1px solid rgba(226,201,133,.25);

    border-radius: 50%;
}

.brand-symbol i {
    position: relative;
    z-index: 1;
}

.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.35;
}

.brand-text strong {

    color: var(--navy-950);

    font-family: "Amiri", serif;

    font-size: 22px;

    font-weight: 700;
}

.brand-text span {

    color: var(--text-light);

    font-size: 10px;

    letter-spacing: .3px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {

    display: flex;

    align-items: center;

    gap: 5px;
}

.main-nav a {

    position: relative;

    padding: 10px 13px;

    color: #394650;

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);
}

.main-nav a::after {

    content: "";

    position: absolute;

    bottom: 3px;

    right: 13px;
    left: 13px;

    height: 2px;

    background: var(--gold);

    transform: scaleX(0);

    transform-origin: right;

    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {

    color: var(--navy-900);
}

.main-nav a:hover::after,
.main-nav a.active::after {

    transform: scaleX(1);
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.header-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 11px 18px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--navy-800),
            var(--navy-950)
        );

    border-radius: 7px;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 8px 22px rgba(7,19,33,.15);

    transition: var(--transition);
}

.header-button i {
    color: var(--gold-light);
}

.header-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 13px 30px rgba(7,19,33,.22);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.menu-toggle {

    width: 45px;
    height: 45px;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    background: var(--navy-900);

    border-radius: 8px;
}

.menu-toggle span {

    width: 22px;
    height: 2px;

    background: var(--gold-light);

    border-radius: 10px;

    transition: var(--transition);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 720px;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        var(--navy-950);
}

.hero-background {

    position: absolute;

    inset: 0;

    z-index: 0;
}

.hero-image {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    filter:
        saturate(.72)
        contrast(1.08);
}

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(5,16,28,.98) 0%,
            rgba(7,22,37,.91) 36%,
            rgba(7,22,37,.70) 65%,
            rgba(7,22,37,.45) 100%
        );
}

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(198,161,91,.13),
            transparent 30%
        );
}

.hero-content {

    position: relative;

    z-index: 5;

    padding:
        95px 0
        120px;

    max-width: 850px;

    margin-right: max(
        20px,
        calc((100% - var(--container)) / 2)
    );

    margin-left: auto;
}

.hero-small-title {

    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--gold-light);

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 20px;
}

.small-line {

    width: 45px;
    height: 1px;

    background: var(--gold);
}

.hero h1 {

    color: var(--white);

    font-family: "Amiri", serif;

    font-size: clamp(
        42px,
        5.5vw,
        76px
    );

    line-height: 1.18;

    font-weight: 700;

    letter-spacing: -.5px;

    text-shadow:
        0 8px 30px rgba(0,0,0,.25);
}

.hero h1 span {

    color: var(--gold-light);

    position: relative;
}

.hero h1 span::after {

    content: "";

    position: absolute;

    height: 3px;

    width: 70%;

    bottom: 2px;

    right: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold)
        );

    opacity: .7;
}

.hero-subtitle {

    margin-top: 18px;

    color: var(--gold-light);

    font-size: 21px;

    font-weight: 700;
}

.hero-description {

    max-width: 690px;

    margin-top: 18px;

    color: rgba(255,255,255,.78);

    font-size: 16px;

    line-height: 2;
}

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 13px;

    margin-top: 30px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

    min-height: 52px;

    padding: 12px 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);
}

.btn-gold {

    color: var(--navy-950);

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    box-shadow:
        0 12px 30px rgba(198,161,91,.20);
}

.btn-gold:hover {

    transform: translateY(-3px);

    box-shadow:
        0 17px 35px rgba(198,161,91,.30);
}

.btn-outline-light {

    color: white;

    border:
        1px solid rgba(255,255,255,.35);

    background:
        rgba(255,255,255,.04);

    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {

    border-color: var(--gold);

    color: var(--gold-light);

    background:
        rgba(198,161,91,.07);
}


/* =========================================================
   HERO TRUST
========================================================= */

.hero-trust {

    display: flex;

    flex-wrap: wrap;

    gap: 35px;

    margin-top: 45px;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,.13);
}

.trust-item {

    display: flex;

    align-items: center;

    gap: 11px;

    color: white;
}

.trust-item > i {

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    border:
        1px solid rgba(198,161,91,.35);

    border-radius: 50%;

    background:
        rgba(198,161,91,.07);
}

.trust-item div {

    display: flex;

    flex-direction: column;

    line-height: 1.35;
}

.trust-item strong {

    font-size: 13px;
}

.trust-item span {

    color: rgba(255,255,255,.56);

    font-size: 11px;
}


/* =========================================================
   HERO DECORATION
========================================================= */

.hero-decoration {

    position: absolute;

    z-index: 3;

    left: 8%;

    top: 50%;

    width: 260px;
    height: 260px;

    transform:
        translateY(-50%);

    opacity: .17;

    pointer-events: none;
}

.decoration-line {

    position: absolute;

    width: 180px;
    height: 180px;

    border:
        1px solid var(--gold);

    border-radius: 50%;

    left: 20px;
    top: 20px;
}

.decoration-circle {

    position: absolute;

    width: 110px;
    height: 110px;

    border:
        1px solid var(--gold-light);

    border-radius: 50%;

    left: 55px;
    top: 55px;
}

.decoration-balance {

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    font-size: 55px;
}


/* =========================================================
   HERO SCROLL
========================================================= */

.hero-scroll {

    position: absolute;

    z-index: 6;

    bottom: 28px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    color: rgba(255,255,255,.6);

    font-size: 11px;

    animation:
        scrollBounce 2s infinite;
}

.hero-scroll i {
    color: var(--gold-light);
}

@keyframes scrollBounce {

    0%,100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(7px);
    }
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section-padding {

    padding:
        105px 0;
}

.section-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .7px;

    margin-bottom: 12px;
}

.section-label::before {

    content: "";

    width: 24px;
    height: 2px;

    background: var(--gold);
}

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 45px;

    margin-bottom: 55px;
}

.section-heading h2 {

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: clamp(32px,4vw,48px);

    line-height: 1.35;
}

.section-heading h2 span {

    color: var(--gold-dark);
}

.section-heading > p {

    max-width: 470px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 2;
}

.section-heading.centered {

    display: block;

    text-align: center;

    max-width: 760px;

    margin-inline: auto;

    margin-bottom: 55px;
}

.section-heading.centered .section-label {
    justify-content: center;
}

.section-heading.centered > p {

    margin: 15px auto 0;
}


/* =========================================================
   INTRO
========================================================= */

.intro-section {

    background: var(--white);

    border-bottom:
        1px solid var(--border);
}

.intro-grid {

    min-height: 230px;

    display: grid;

    grid-template-columns:
        100px
        1fr
        1fr;

    align-items: center;

    gap: 35px;
}

.intro-number span {

    color: var(--gold);

    font-family: "Amiri", serif;

    font-size: 65px;

    font-weight: 700;
}

.intro-text h2 {

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: 32px;

    line-height: 1.5;
}

.intro-description {

    padding-right: 35px;

    border-right:
        1px solid var(--border);
}

.intro-description p {

    color: var(--text-light);

    font-size: 14px;

    line-height: 2;
}

.text-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 13px;

    color: var(--navy-800);

    font-size: 13px;

    font-weight: 800;
}

.text-link i {

    color: var(--gold-dark);

    transition: var(--transition);
}

.text-link:hover i {
    transform: translateX(-5px);
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: var(--ivory);
}

.about-grid {

    display: grid;

    grid-template-columns:
        .85fr
        1.15fr;

    gap: 90px;

    align-items: center;
}

.about-visual {

    position: relative;

    padding: 15px 0 30px 20px;
}

.about-image-wrapper {

    position: relative;

    height: 500px;

    overflow: hidden;

    border-radius:
        2px 80px 2px 2px;

    background:
        var(--navy-900);

    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.82)
        contrast(1.03);
}

.image-frame {

    position: absolute;

    inset: 18px;

    border:
        1px solid rgba(226,201,133,.65);

    border-radius:
        2px 65px 2px 2px;

    pointer-events: none;
}

.image-placeholder {

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: var(--gold-light);

    gap: 10px;

    background:
        radial-gradient(
            circle at center,
            var(--navy-700),
            var(--navy-950)
        );
}

.image-placeholder i {
    font-size: 80px;
}

.image-placeholder span {

    font-family: "Amiri", serif;

    font-size: 42px;

    letter-spacing: 5px;
}

.about-badge {

    position: absolute;

    bottom: 0;

    right: -20px;

    min-width: 230px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px 22px;

    color: white;

    background:
        var(--navy-900);

    border:
        1px solid rgba(198,161,91,.45);

    box-shadow:
        0 18px 35px rgba(7,19,33,.20);
}

.about-badge > i {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    border:
        1px solid rgba(198,161,91,.35);

    border-radius: 50%;
}

.about-badge span {

    display: flex;

    flex-direction: column;

    line-height: 1.5;

    font-weight: 700;
}

.about-badge small {

    color: rgba(255,255,255,.55);

    font-size: 10px;
}

.about-content {

    position: relative;
}

.gold-number {

    display: block;

    color: var(--gold);

    font-family: "Amiri", serif;

    font-size: 55px;

    line-height: 1;

    margin-bottom: 15px;

    opacity: .7;
}

.about-content h3 {

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: 35px;

    line-height: 1.5;

    margin-bottom: 20px;
}

.about-content p {

    color: var(--text-light);

    font-size: 14px;

    line-height: 2;

    margin-bottom: 13px;
}

.about-points {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 25px;

    padding-top: 25px;

    border-top:
        1px solid var(--border);
}

.about-points div {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--navy-800);

    font-size: 13px;

    font-weight: 700;
}

.about-points i {

    width: 22px;
    height: 22px;

    display: grid;

    place-items: center;

    color: var(--gold-dark);

    background:
        rgba(198,161,91,.13);

    border-radius: 50%;

    font-size: 10px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-section {

    background: var(--white);
}

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.service-card {

    position: relative;

    min-height: 325px;

    padding: 35px 30px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf8f3
        );

    border:
        1px solid var(--border);

    border-radius: 3px;

    overflow: hidden;

    transition: var(--transition);
}

.service-card::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );

    transform: scaleX(0);

    transform-origin: right;

    transition: var(--transition);
}

.service-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(198,161,91,.35);

    box-shadow: var(--shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {

    position: absolute;

    left: 24px;
    top: 18px;

    color: var(--gold);

    font-family: "Amiri", serif;

    font-size: 17px;

    opacity: .7;
}

.service-icon {

    width: 60px;
    height: 60px;

    display: grid;

    place-items: center;

    color: var(--gold-dark);

    background:
        rgba(198,161,91,.10);

    border:
        1px solid rgba(198,161,91,.22);

    border-radius: 50%;

    font-size: 21px;

    margin-bottom: 22px;

    transition: var(--transition);
}

.service-card:hover .service-icon {

    color: white;

    background:
        var(--navy-900);

    border-color:
        var(--navy-900);

    transform: rotateY(180deg);
}

.service-card h3 {

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: 24px;

    margin-bottom: 12px;
}

.service-card p {

    color: var(--text-light);

    font-size: 13px;

    line-height: 2;

    margin-bottom: 20px;
}

.service-card a {

    position: absolute;

    bottom: 27px;
    right: 30px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--navy-800);

    font-size: 12px;

    font-weight: 800;
}

.service-card a i {

    color: var(--gold-dark);

    transition: var(--transition);
}

.service-card a:hover i {
    transform: translateX(-5px);
}


/* =========================================================
   PRACTICE
========================================================= */

.practice-section {

    position: relative;

    background:
        var(--navy-950);

    color: white;

    overflow: hidden;
}

.practice-section::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -220px;
    top: -200px;

    border:
        1px solid rgba(198,161,91,.10);

    border-radius: 50%;
}

.practice-section::after {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -150px;
    bottom: -160px;

    border:
        1px solid rgba(198,161,91,.08);

    border-radius: 50%;
}

.practice-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    gap: 100px;

    align-items: center;
}

.practice-content .section-label {
    color: var(--gold-light);
}

.practice-content h2 {

    color: white;

    font-family: "Amiri", serif;

    font-size: clamp(34px,4vw,50px);

    line-height: 1.4;
}

.practice-content h2 span {
    color: var(--gold-light);
}

.practice-content > p {

    max-width: 650px;

    margin-top: 17px;

    color: rgba(255,255,255,.62);

    font-size: 14px;

    line-height: 2;
}

.practice-list {

    margin-top: 35px;
}

.practice-item {

    display: flex;

    gap: 18px;

    padding: 22px 0;

    border-bottom:
        1px solid rgba(255,255,255,.09);
}

.practice-item > span {

    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    border:
        1px solid rgba(198,161,91,.35);

    border-radius: 50%;

    font-family: "Amiri", serif;
}

.practice-item h4 {

    color: white;

    font-size: 16px;

    margin-bottom: 4px;
}

.practice-item p {

    color: rgba(255,255,255,.52);

    font-size: 12px;

    line-height: 1.9;
}

.practice-visual {

    min-height: 500px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.04),
            rgba(255,255,255,.015)
        );

    border:
        1px solid rgba(255,255,255,.08);

    overflow: hidden;
}

.practice-visual::before {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    border:
        1px solid rgba(198,161,91,.18);

    border-radius: 50%;
}

.law-emblem {

    position: relative;

    z-index: 2;

    text-align: center;

    color: var(--gold-light);
}

.emblem-circle {

    width: 160px;
    height: 160px;

    margin-inline: auto;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(198,161,91,.6);

    border-radius: 50%;

    font-size: 65px;

    box-shadow:
        inset 0 0 0 8px rgba(198,161,91,.04),
        0 0 50px rgba(198,161,91,.06);
}

.law-emblem > span {

    display: block;

    margin-top: 22px;

    font-family: "Amiri", serif;

    font-size: 28px;

    letter-spacing: 5px;
}

.law-emblem small {

    display: block;

    color: rgba(255,255,255,.42);

    font-size: 8px;

    letter-spacing: 2px;
}

.practice-quote {

    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    padding: 20px;

    background:
        rgba(0,0,0,.20);

    border-right:
        2px solid var(--gold);
}

.practice-quote i {
    color: var(--gold);
}

.practice-quote p {

    margin-top: 7px;

    color: rgba(255,255,255,.72);

    font-family: "Amiri", serif;

    font-size: 17px;
}


/* =========================================================
   PRINCIPLES
========================================================= */

.principles-section {

    background: var(--ivory);
}

.principles-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.principle {

    text-align: center;

    padding: 38px 24px;

    background: white;

    border:
        1px solid var(--border);

    transition: var(--transition);
}

.principle:hover {

    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.principle-icon {

    width: 68px;
    height: 68px;

    display: grid;

    place-items: center;

    margin: 0 auto 20px;

    color: var(--gold-dark);

    background:
        rgba(198,161,91,.09);

    border:
        1px solid rgba(198,161,91,.20);

    border-radius: 50%;

    font-size: 22px;
}

.principle h3 {

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: 23px;

    margin-bottom: 8px;
}

.principle p {

    color: var(--text-light);

    font-size: 12px;

    line-height: 2;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-section {

    background: white;
}

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.gallery-item {

    position: relative;

    height: 230px;

    overflow: hidden;

    cursor: pointer;

    background: var(--navy-900);
}

.gallery-item img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .7s ease,
        filter .5s ease;
}

.gallery-item:hover img {

    transform: scale(1.08);

    filter:
        brightness(.72)
        saturate(.8);
}

.gallery-overlay {

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    background:
        rgba(7,19,33,.42);

    opacity: 0;

    transition: var(--transition);
}

.gallery-overlay i {

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(255,255,255,.5);

    border-radius: 50%;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {

    padding: 65px 0;

    background:
        linear-gradient(
            135deg,
            var(--navy-900),
            var(--navy-950)
        );
}

.cta-content {

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 28px;
}

.cta-symbol {

    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    border:
        1px solid rgba(198,161,91,.35);

    border-radius: 50%;

    font-size: 28px;
}

.cta-content span {

    color: var(--gold-light);

    font-size: 12px;
}

.cta-content h2 {

    color: white;

    font-family: "Amiri", serif;

    font-size: 32px;

    line-height: 1.4;
}

.cta-content p {

    color: rgba(255,255,255,.55);

    font-size: 12px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {

    background: var(--ivory);
}

.contact-grid {

    display: grid;

    grid-template-columns:
        .85fr
        1.15fr;

    gap: 80px;

    align-items: start;
}

.contact-info h2 {

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: 44px;

    line-height: 1.4;
}

.contact-info h2 span {
    color: var(--gold-dark);
}

.contact-info > p {

    margin-top: 15px;

    color: var(--text-light);

    font-size: 14px;
}

.contact-items {

    margin-top: 30px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.contact-item {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    background: white;

    border:
        1px solid var(--border);

    transition: var(--transition);
}

.contact-item:hover {

    transform: translateX(-5px);

    border-color:
        rgba(198,161,91,.30);

    box-shadow: var(--shadow-sm);
}

.contact-icon {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    color: var(--gold-dark);

    background:
        rgba(198,161,91,.09);

    border-radius: 50%;
}

.contact-item div:last-child {

    display: flex;

    flex-direction: column;

    line-height: 1.5;
}

.contact-item span {

    color: var(--text-light);

    font-size: 10px;
}

.contact-item strong {

    color: var(--navy-900);

    font-size: 13px;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {

    padding: 38px;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);

    border-top:
        4px solid var(--gold);
}

.contact-card-top {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 28px;

    color: var(--navy-900);

    font-family: "Amiri", serif;

    font-size: 24px;

    font-weight: 700;
}

.mini-scale {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    color: var(--gold-dark);

    background:
        rgba(198,161,91,.10);

    border-radius: 50%;

    font-size: 17px;
}

.form-row {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 15px;
}

.form-group {

    margin-bottom: 17px;
}

.form-group label {

    display: block;

    color: var(--navy-900);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {

    width: 100%;

    color: var(--text);

    background: #faf9f5;

    border:
        1px solid #e2dfd7;

    border-radius: 6px;

    padding: 13px 14px;

    font-size: 13px;

    transition: var(--transition);
}

.form-group input,
.form-group select {
    height: 48px;
}

.form-group textarea {

    min-height: 140px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color: var(--gold);

    background: white;

    box-shadow:
        0 0 0 3px rgba(198,161,91,.10);
}

.form-submit {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: var(--navy-950);

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    border-radius: 6px;

    font-size: 14px;

    font-weight: 800;

    transition: var(--transition);
}

.form-submit:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(198,161,91,.25);
}

.form-message {

    display: none;

    margin-top: 15px;

    padding: 12px;

    border-radius: 6px;

    font-size: 12px;

    text-align: center;
}

.form-message.success {

    display: block;

    color: #17613c;

    background: #eaf7ef;

    border:
        1px solid #c9ead5;
}

.form-message.error {

    display: block;

    color: #8b2e2e;

    background: #fff0f0;

    border:
        1px solid #f0cccc;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    color: rgba(255,255,255,.65);

    background:
        #050f1a;
}

.footer-main {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr;

    gap: 45px;

    padding: 70px 0 50px;
}

.footer-logo {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    border:
        1px solid rgba(198,161,91,.35);

    border-radius: 50%;

    margin-bottom: 13px;
}

.footer-brand strong {

    display: block;

    color: white;

    font-family: "Amiri", serif;

    font-size: 24px;
}

.footer-brand > span {

    display: block;

    color: var(--gold-light);

    font-size: 10px;
}

.footer-brand p {

    max-width: 330px;

    margin-top: 14px;

    font-size: 12px;

    line-height: 2;
}

.footer-links,
.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-links h4,
.footer-contact h4 {

    color: white;

    font-family: "Amiri", serif;

    font-size: 19px;

    margin-bottom: 8px;
}

.footer-links a {

    width: fit-content;

    font-size: 12px;

    transition: var(--transition);
}

.footer-links a:hover {

    color: var(--gold-light);

    transform: translateX(-4px);
}

.footer-contact a,
.footer-contact span {

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;
}

.footer-contact i {

    color: var(--gold-light);

    width: 18px;

    text-align: center;
}

.footer-bottom {

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

    font-size: 10px;
}


/* =========================================================
   WHATSAPP
========================================================= */

.floating-whatsapp {

    position: fixed;

    left: 22px;
    bottom: 22px;

    z-index: 900;

    min-height: 50px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 10px 16px;

    color: white;

    background:
        #168b5a;

    border-radius: 30px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);
}

.floating-whatsapp i {
    font-size: 20px;
}

.floating-whatsapp:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.25);
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {

    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 900;

    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    color: var(--gold-light);

    background:
        var(--navy-900);

    border:
        1px solid rgba(198,161,91,.35);

    border-radius: 7px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: var(--transition);
}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {

    color: var(--navy-950);

    background: var(--gold);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(3,9,16,.95);

    opacity: 0;

    visibility: hidden;

    transition: var(--transition);
}

.lightbox.open {

    opacity: 1;

    visibility: visible;
}

.lightbox-content {

    max-width: 1000px;
    max-height: 85vh;

    position: relative;

    z-index: 2;
}

.lightbox-content img {

    max-width: 100%;

    max-height: 85vh;

    object-fit: contain;

    box-shadow:
        0 30px 80px rgba(0,0,0,.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    z-index: 5;

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    color: white;

    background:
        rgba(255,255,255,.07);

    border:
        1px solid rgba(255,255,255,.20);

    border-radius: 50%;

    transition: var(--transition);
}

.lightbox-close {

    top: 25px;
    left: 25px;
}

.lightbox-prev {

    right: 25px;

    top: 50%;

    transform: translateY(-50%);
}

.lightbox-next {

    left: 25px;

    top: 50%;

    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {

    color: var(--navy-950);

    background: var(--gold-light);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .75s ease,
        transform .75s ease;
}

.reveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE 1050
========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding-inline: 8px;
        font-size: 12px;
    }

    .header-button {
        padding-inline: 13px;
    }

    .hero-content {
        margin-right: 20px;
    }

    .about-grid,
    .practice-grid {
        gap: 50px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .principles-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .footer-main {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE 850
========================================================= */

@media (max-width: 850px) {

    .top-bar {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-button {
        display: none;
    }

    .main-nav {

        position: absolute;

        top: 100%;

        right: 20px;
        left: 20px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        padding: 10px;

        background: white;

        border:
            1px solid var(--border);

        box-shadow: var(--shadow);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: var(--transition);
    }

    .main-nav.open {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .main-nav a {
        padding: 12px 15px;
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .hero-decoration {
        display: none;
    }

    .intro-grid {

        grid-template-columns:
            70px 1fr;

        padding: 55px 0;
    }

    .intro-description {

        grid-column: 2;

        padding-right: 0;

        border-right: 0;
    }

    .about-grid,
    .practice-grid,
    .contact-grid {

        grid-template-columns: 1fr;
    }

    .about-visual {
        max-width: 650px;
        margin-inline: auto;
        width: 100%;
    }

    .practice-visual {
        min-height: 420px;
    }

    .cta-content {
        grid-template-columns:
            auto 1fr;
    }

    .cta-content .btn {
        grid-column: 2;
        justify-self: start;
    }
}


/* =========================================================
   RESPONSIVE 600
========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .brand-text span {
        display: none;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-symbol {
        width: 42px;
        height: 42px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        margin-right: 14px;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-trust {
        gap: 15px;

        display: grid;

        grid-template-columns:
            1fr 1fr;
    }

    .trust-item:last-child {
        grid-column: 1 / -1;
    }

    .section-padding {
        padding: 75px 0;
    }

    .section-heading {
        display: block;

        margin-bottom: 35px;
    }

    .section-heading > p {
        margin-top: 15px;
    }

    .section-heading h2 {
        font-size: 35px;
    }

    .intro-grid {
        display: block;
    }

    .intro-number {
        margin-bottom: 5px;
    }

    .intro-number span {
        font-size: 48px;
    }

    .intro-text h2 {
        font-size: 28px;
    }

    .intro-description {
        margin-top: 18px;
    }

    .about-image-wrapper {
        height: 420px;
    }

    .about-badge {
        right: 0;
    }

    .about-content h3 {
        font-size: 30px;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 300px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .gallery-item {
        height: 180px;
    }

    .practice-visual {
        min-height: 370px;
    }

    .contact-info h2 {
        font-size: 35px;
    }

    .contact-card {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cta-content {
        display: block;
    }

    .cta-symbol {
        margin-bottom: 18px;
    }

    .cta-content .btn {
        margin-top: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 55px 0 40px;
    }

    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        padding: 20px 0;
    }

    .floating-whatsapp {

        left: 14px;
        bottom: 14px;

        width: 50px;
        height: 50px;

        min-height: 50px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;
    }

    .floating-whatsapp span {
        display: none;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-prev {
        right: 10px;
    }

    .lightbox-next {
        left: 10px;
    }
}


/* =========================================================
   RESPONSIVE 380
========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 36px;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .trust-item:last-child {
        grid-column: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}