/* =========================================================
   AZADIPOUR
   MEDICAL TECHNOLOGY & HOSPITAL SOLUTIONS
   UNIFIED MASTER STYLESHEET
   Desktop · Large Monitors · Laptop · Tablet · Mobile
   ========================================================= */

/* 01. VARIABLES */
:root {
    --black: #050505;
    --black-soft: #090909;
    --black-light: #111111;
    --black-card: #151515;

    --white: #f5f3ee;
    --white-soft: #d8d5ce;
    --gray: #99958e;
    --gray-dark: #66635d;

    --gold: #c7b28a;

    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);

    --max-width: 1500px;
    --page-gutter: clamp(24px, 5vw, 84px);
    --header-height: 104px;

    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;

    --transition: 0.3s ease;
}

/* 02. RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    background: var(--black);
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.05;
}

h1 em,
h2 em,
h3 em,
h4 em {
    font-style: italic;
}

p {
    overflow-wrap: break-word;
}

section[id] {
    scroll-margin-top: 100px;
}

/* 03. SHARED CONTAINERS */
.section-container,
.nav-container,
.footer-container,
.footer-bottom {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: clamp(90px, 10vw, 150px) var(--page-gutter);
    background: var(--black);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 80px);
    margin-bottom: clamp(45px, 6vw, 80px);
}

.intro-label,
.eyebrow {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 28px;
    font-size: clamp(54px, 6.2vw, 90px);
    line-height: 0.94;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
}

.section-heading p {
    max-width: 680px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
}

/* 04. HEADER */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 25px var(--page-gutter);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.84) 0%,
        rgba(0, 0, 0, 0.32) 65%,
        transparent 100%
    );
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 48px);
}

.brand {
    display: block;
    width: clamp(58px, 5vw, 76px);
    flex: 0 0 auto;
}

.brand img {
    width: 100%;
    max-height: 78px;
    object-fit: contain;
}

/* 05. DESKTOP NAVIGATION */
.main-nav {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.55vw, 25px);
    min-width: 0;
}

.main-nav a {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.76);
    font-family: var(--font-body);
    font-size: clamp(9px, 0.68vw, 11px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: clamp(0.4px, 0.075vw, 1.2px);
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

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

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

/* Mobile menu controls */
.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.menu-button {
    display: none;
}

/* 06. BUTTONS */
.luxury-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 15px 28px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.luxury-button:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.luxury-button.outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white-soft);
}

.luxury-button.outline:hover {
    border-color: var(--gold);
    background: transparent;
    color: var(--white);
}

/* 07. HOMEPAGE HERO */
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 760px;
    min-height: 100svh;
    overflow: hidden;
    background: var(--black);
}

.hero-image,
.hero-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-image {
    z-index: -2;
    background-image: url("assets/medical-hero.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: scale(1.005);
}

.hero-gradient {
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.88) 28%,
            rgba(0, 0, 0, 0.64) 48%,
            rgba(0, 0, 0, 0.25) 76%,
            rgba(0, 0, 0, 0.18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.68),
            transparent 48%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(780px, 56%);
    margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    padding-top: 130px;
    padding-bottom: 110px;
}

.eyebrow {
    margin-bottom: 26px;
}

.hero-content h1 {
    max-width: 780px;
    margin-bottom: 30px;
    font-size: clamp(68px, 6.3vw, 108px);
    line-height: 0.94;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
    word-break: normal;
}

.hero-content h1 em {
    display: inline-block;
}

.hero-description {
    max-width: 600px;
    color: var(--white-soft);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.hero-bottom {
    position: absolute;
    z-index: 3;
    right: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    bottom: 28px;
    left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.7;
    text-transform: uppercase;
}

/* 08. INTRODUCTION */
.intro-section {
    background: linear-gradient(180deg, #050505, #090909);
}

.intro-section .section-container {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 80px);
}

.intro-label {
    display: block;
}

.intro-content {
    max-width: 1050px;
    min-width: 0;
}

.intro-content h2 {
    margin-bottom: 40px;
    font-size: clamp(58px, 6.2vw, 92px);
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.intro-content .large-text {
    max-width: 850px;
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(19px, 1.5vw, 25px);
    line-height: 1.7;
}

.intro-content p:not(.large-text) {
    max-width: 730px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.95;
}

/* 09. CORE SOLUTIONS */
.solutions-section {
    background: #080808;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
}

.solution-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    min-height: clamp(440px, 35vw, 590px);
    overflow: hidden;
    background: #111;
}

.solution-card .card-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.8s ease;
}

.cardiac-card .card-image {
    background-image: url("assets/cardiac-hero.jpg");
}

.robotic-card .card-image {
    background-image: url("assets/robotic-hero.jpg");
}

.hospital-card .card-image {
    background-image: url("assets/hospital-project.jpg");
}

.solution-card:hover .card-image {
    transform: scale(1.055);
}

.card-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.76) 32%,
        rgba(0, 0, 0, 0.22) 75%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(24px, 2.4vw, 40px);
}

.card-number {
    display: block;
    margin-bottom: 30px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.card-content h3 {
    margin-bottom: 22px;
    font-size: clamp(32px, 2.7vw, 46px);
    line-height: 0.98;
}

.card-content p {
    max-width: 390px;
    margin-bottom: 26px;
    color: var(--white-soft);
    font-size: 13px;
    line-height: 1.85;
}

.card-link {
    display: inline-block;
    color: var(--white);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
}

/* 10. PROJECT FEATURE */
.project-feature {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 650px;
    padding: 110px var(--page-gutter);
    overflow: hidden;
    background: #080808;
}

.project-image,
.project-overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.project-image {
    background-image: url("assets/hospital-project.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.project-overlay {
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.72) 46%,
        rgba(0, 0, 0, 0.34) 100%
    );
}

.project-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.project-content h2 {
    max-width: 1000px;
    margin: 28px 0 32px;
    font-size: clamp(60px, 6.2vw, 100px);
    line-height: 0.94;
    letter-spacing: -0.035em;
}

.project-content p {
    max-width: 650px;
    margin-bottom: 35px;
    color: var(--white-soft);
    font-size: 16px;
    line-height: 1.9;
}

/* 11. GLOBAL MARKETS */
.markets-section {
    background: #080808;
}

.market-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.market-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    min-height: 195px;
    padding: 28px;
    border-right: 1px solid var(--line);
}

.market-item:last-child {
    border-right: 0;
}

.market-item span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.market-item strong {
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.market-item small {
    color: var(--gray);
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.gcc-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 40px;
}

.gcc-line span {
    margin: 8px 0;
    padding: 0 22px;
    border-right: 1px solid var(--line);
    color: var(--gray);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.17em;
}

.gcc-line span:first-child {
    padding-left: 0;
}

.gcc-line span:last-child {
    border-right: 0;
}

/* 12. FINAL CALL TO ACTION */
.final-cta {
    padding: clamp(100px, 10vw, 160px) var(--page-gutter);
    text-align: center;
    background: radial-gradient(
        ellipse at center,
        #181713 0%,
        #0b0a08 35%,
        #050505 72%
    );
}

.final-cta .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta h2 {
    max-width: 1200px;
    margin: 28px 0;
    font-size: clamp(58px, 6.5vw, 108px);
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.final-cta p {
    max-width: 680px;
    margin-bottom: 38px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
}

/* 13. FOOTER */
.site-footer {
    padding: 75px var(--page-gutter) 25px;
    border-top: 1px solid var(--line-soft);
    background: #030303;
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(130px, 1fr) minmax(130px, 1fr);
    gap: clamp(35px, 6vw, 90px);
    padding-bottom: 60px;
}

.footer-brand {
    min-width: 0;
}

.footer-brand img {
    width: 76px;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 23px;
}

.footer-brand p {
    margin-bottom: 12px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.footer-brand p a {
    overflow-wrap: anywhere;
}

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

.footer-column h4 {
    margin-bottom: 12px;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.18em;
}

.footer-column a {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.8;
    transition: color var(--transition);
}

.footer-column a:hover,
.footer-brand p a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--gray-dark);
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

/* 14. ROBOTIC AND CARDIAC HERO */
.robotic-page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 760px;
    min-height: 100svh;
    overflow: hidden;
    background: var(--black);
}

.robotic-page-image,
.robotic-page-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.robotic-page-image {
    z-index: -2;
    background-image: url("assets/robotic-hero.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.robotic-page-overlay {
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.77) 42%,
        rgba(0, 0, 0, 0.32) 100%
    );
}

.robotic-page-content {
    position: relative;
    z-index: 2;
    width: min(780px, 56%);
    margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    padding-top: 130px;
    padding-bottom: 110px;
}

.robotic-page-content h1 {
    max-width: 780px;
    margin: 28px 0 30px;
    font-size: clamp(68px, 6.3vw, 108px);
    line-height: 0.94;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
}

.robotic-page-content p {
    max-width: 600px;
    color: var(--white-soft);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.9;
}

.robotic-page-content .hero-actions {
    margin-top: 34px;
}

.robotic-page-hero .hero-bottom {
    z-index: 3;
}

/* 15. ROBOTIC AND CARDIAC SOLUTIONS */
.robotic-solutions {
    padding: clamp(90px, 10vw, 150px) var(--page-gutter);
    background: #080808;
}

.robotic-solutions .section-container > .section-heading {
    margin-bottom: 0;
}

.robotic-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 65px;
    background: rgba(255, 255, 255, 0.08);
}

.robotic-solution-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 300px;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.035);
    background: #101010;
    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.robotic-solution-card:hover {
    border-color: rgba(199, 178, 138, 0.25);
    background: #151515;
}

.robotic-solution-card > span {
    color: var(--gold);
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.16em;
}

.robotic-solution-card h3 {
    margin-top: auto;
    padding-top: 60px;
    margin-bottom: 20px;
    font-size: clamp(31px, 2.6vw, 42px);
    line-height: 1;
}

.robotic-solution-card p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.9;
}

/* 16. GENERIC CONTENT PAGES */
.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 650px;
    min-height: 82svh;
    padding: 150px var(--page-gutter) 100px;
    overflow: hidden;
    background: var(--black);
}

.page-hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-hero-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.94),
        rgba(0, 0, 0, 0.64) 60%,
        rgba(0, 0, 0, 0.34)
    );
}

.page-hero-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-hero-content h1 {
    max-width: 1000px;
    margin: 28px 0;
    font-size: clamp(64px, 6.8vw, 110px);
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.page-hero-content p {
    max-width: 680px;
    color: var(--white-soft);
    font-size: 16px;
    line-height: 1.9;
}

/* Generic grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.content-card {
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--line-soft);
    background: #101010;
}

.content-card h3 {
    margin: 20px 0;
    font-size: 34px;
}

.content-card p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.9;
}

/* Forms */
.contact-form,
.project-form {
    width: 100%;
    max-width: 850px;
}

.contact-form label,
.project-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--white-soft);
    font-size: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.project-form input,
.project-form textarea,
.project-form select {
    width: 100%;
    min-height: 48px;
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: #101010;
    color: var(--white);
}

.contact-form textarea,
.project-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.project-form input:focus,
.project-form textarea:focus,
.project-form select:focus {
    border-color: var(--gold);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.project-form input::placeholder,
.project-form textarea::placeholder {
    color: var(--gray-dark);
}

/* 17. ACCESSIBILITY */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 5px;
}

/* 18. DESKTOP NAVIGATION SAFETY */
@media (min-width: 901px) {
    .menu-button {
        display: none !important;
    }

    .main-nav {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

/* 19. SMALL LAPTOPS */
@media (max-width: 1250px) and (min-width: 901px) {
    :root {
        --page-gutter: 34px;
        --header-height: 88px;
    }

    .site-header {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .nav-container {
        gap: 24px;
    }

    .brand {
        width: 58px;
    }

    .main-nav {
        gap: clamp(10px, 1.1vw, 15px);
    }

    .main-nav a {
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .hero-content,
    .robotic-page-content {
        width: 62%;
        margin-left: var(--page-gutter);
    }

    .hero-content h1,
    .robotic-page-content h1 {
        font-size: clamp(58px, 5.6vw, 76px);
    }

    .solution-card {
        min-height: 440px;
    }

    .card-content {
        padding: 25px;
    }

    .card-content h3 {
        font-size: 35px;
    }

    .market-item {
        padding: 22px;
    }
}

/* 20. LARGE DESKTOPS: 1251px–1599px */
@media (min-width: 1251px) and (max-width: 1599px) {
    :root {
        --max-width: 1420px;
        --page-gutter: 54px;
    }

    .site-header {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .nav-container {
        gap: 36px;
    }

    .brand {
        width: 70px;
    }

    .main-nav {
        gap: clamp(16px, 1.7vw, 25px);
    }

    .main-nav a {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .hero-content {
        width: min(760px, 57%);
        margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    }

    .hero-content h1 {
        font-size: clamp(78px, 6.1vw, 98px);
        line-height: 0.95;
    }

    .hero-bottom {
        left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
        right: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    }

    .robotic-page-content {
        width: min(760px, 57%);
    }

    .robotic-page-content h1 {
        font-size: clamp(78px, 6.1vw, 98px);
        line-height: 0.95;
    }
}

/* 21. LARGE MONITORS: 1600px–2199px */
@media (min-width: 1600px) {
    :root {
        --max-width: 1640px;
        --page-gutter: clamp(80px, 5vw, 120px);
        --header-height: 116px;
    }

    .site-header {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .nav-container,
    .section-container,
    .footer-container,
    .footer-bottom {
        max-width: var(--max-width);
    }

    .nav-container {
        gap: 60px;
    }

    .brand {
        width: 82px;
    }

    .brand img {
        max-height: 92px;
    }

    .main-nav {
        gap: clamp(22px, 1.7vw, 34px);
    }

    .main-nav a {
        font-size: 11px;
        letter-spacing: 1.1px;
    }

    .home-hero {
        min-height: 900px;
        min-height: 100svh;
    }

    .hero-content {
        width: min(850px, 55%);
        margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
        padding-top: 155px;
        padding-bottom: 145px;
    }

    .hero-content h1 {
        max-width: 850px;
        margin-bottom: 36px;
        font-size: clamp(100px, 5.5vw, 122px);
        line-height: 0.96;
    }

    .eyebrow {
        margin-bottom: 30px;
        font-size: 11px;
    }

    .hero-description {
        max-width: 680px;
        font-size: 18px;
        line-height: 1.9;
    }

    .hero-actions {
        gap: 16px;
        margin-top: 40px;
    }

    .hero-bottom {
        left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
        right: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
        bottom: 34px;
        font-size: 10px;
    }

    .section {
        padding-top: 145px;
        padding-bottom: 145px;
    }

    .section-heading h2 {
        font-size: clamp(78px, 4.6vw, 100px);
    }

    .section-heading p {
        font-size: 16px;
    }

    .intro-content h2 {
        font-size: clamp(82px, 5vw, 104px);
    }

    .intro-content .large-text {
        font-size: 26px;
    }

    .solution-card {
        min-height: 570px;
    }

    .card-content {
        padding: 40px;
    }

    .card-content h3 {
        font-size: clamp(42px, 2.8vw, 52px);
    }

    .card-content p {
        font-size: 14px;
    }

    .project-feature {
        min-height: 760px;
        padding-top: 145px;
        padding-bottom: 145px;
    }

    .project-content h2 {
        max-width: 1150px;
        font-size: clamp(94px, 5.5vw, 118px);
    }

    .project-content p {
        font-size: 18px;
    }

    .market-item {
        min-height: 220px;
        padding: 34px;
    }

    .market-item strong {
        font-size: clamp(36px, 2.3vw, 46px);
    }

    .final-cta {
        padding-top: 160px;
        padding-bottom: 160px;
    }

    .final-cta h2 {
        font-size: clamp(100px, 6vw, 128px);
    }

    .robotic-page-hero {
        min-height: 900px;
        min-height: 100svh;
    }

    .robotic-page-content {
        width: min(850px, 55%);
        margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
        padding-top: 155px;
        padding-bottom: 145px;
    }

    .robotic-page-content h1 {
        font-size: clamp(100px, 5.5vw, 122px);
        line-height: 0.96;
    }

    .robotic-page-content p {
        font-size: 18px;
    }

    .robotic-solutions {
        padding-top: 145px;
        padding-bottom: 145px;
    }

    .robotic-solution-card {
        min-height: 340px;
        padding: 42px;
    }

    .robotic-solution-card h3 {
        font-size: 44px;
    }

    .page-hero {
        min-height: 800px;
        padding-top: 170px;
        padding-bottom: 120px;
    }

    .page-hero-content h1 {
        font-size: clamp(90px, 5.5vw, 120px);
    }

    .page-hero-content p {
        font-size: 18px;
    }

    .content-card {
        padding: 40px;
    }

    .content-card h3 {
        font-size: 40px;
    }

    .content-card p {
        font-size: 14px;
    }

    .site-footer {
        padding-top: 90px;
    }
}

/* 22. ULTRA-WIDE MONITORS: 2200px AND ABOVE */
@media (min-width: 2200px) {
    :root {
        --max-width: 1760px;
        --page-gutter: 120px;
    }

    .nav-container,
    .section-container,
    .footer-container,
    .footer-bottom {
        max-width: var(--max-width);
    }

    .site-header {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .brand {
        width: 90px;
    }

    .main-nav {
        gap: 34px;
    }

    .main-nav a {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    .hero-content {
        width: min(900px, 54%);
        margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    }

    .hero-content h1 {
        font-size: 128px;
    }

    .hero-description {
        max-width: 700px;
        font-size: 19px;
    }

    .hero-bottom {
        left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
        right: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    }

    .section {
        padding-top: 170px;
        padding-bottom: 170px;
    }

    .section-heading {
        gap: 90px;
    }

    .section-heading h2 {
        font-size: 105px;
    }

    .solution-card {
        min-height: 630px;
    }

    .project-feature {
        min-height: 820px;
    }

    .project-content h2 {
        font-size: 125px;
    }

    .robotic-page-content {
        width: min(900px, 54%);
        margin-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
    }

    .robotic-page-content h1 {
        font-size: 128px;
    }
}

/* 23. TABLETS AND MOBILE NAVIGATION */
@media (max-width: 900px) {
    :root {
        --page-gutter: 26px;
        --header-height: 82px;
    }

    .site-header {
        padding: 19px var(--page-gutter);
    }

    .nav-container {
        gap: 20px;
    }

    .brand {
        width: 58px;
    }

    .menu-button {
        position: relative;
        z-index: 1002;
        display: flex;
        flex: 0 0 36px;
        flex-direction: column;
        justify-content: space-between;
        width: 36px;
        height: 25px;
        margin-left: auto;
        cursor: pointer;
    }

    .menu-button span {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--white);
        transition:
            transform var(--transition),
            opacity var(--transition);
    }

    .main-nav {
        position: fixed;
        z-index: 1001;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 19px;
        width: min(390px, 86vw);
        height: 100vh;
        height: 100dvh;
        padding: 115px 35px 40px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-left: 1px solid var(--line);
        background: rgba(5, 5, 5, 0.985);
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.35s ease,
            visibility 0.35s ease;
    }

    .main-nav a {
        flex: 0 0 auto;
        padding: 8px 0;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .menu-toggle:checked ~ .main-nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .menu-toggle:checked + .menu-button span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-button span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

    .home-hero {
        min-height: 780px;
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-image {
        background-position: 62% center;
    }

    .hero-gradient {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.32) 0%,
                rgba(0, 0, 0, 0.55) 28%,
                rgba(0, 0, 0, 0.91) 65%,
                #050505 100%
            ),
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.42),
                rgba(0, 0, 0, 0.08)
            );
    }

    .hero-content {
        width: 100%;
        margin-left: 0;
        padding: 150px var(--page-gutter) 125px;
    }

    .hero-content h1 {
        max-width: 760px;
        font-size: clamp(60px, 9vw, 84px);
        line-height: 0.98;
    }

    .hero-description {
        max-width: 600px;
        font-size: 15px;
    }

    .hero-bottom {
        left: var(--page-gutter);
        right: var(--page-gutter);
        bottom: 23px;
        gap: 8px 18px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .section {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .intro-section .section-container,
    .section-heading {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .intro-content h2,
    .section-heading h2 {
        font-size: clamp(52px, 8vw, 75px);
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .solution-card {
        min-height: 490px;
    }

    .card-content {
        padding: 32px;
    }

    .card-content h3 {
        font-size: 45px;
    }

    .project-feature {
        min-height: 600px;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .project-content h2 {
        font-size: clamp(52px, 8vw, 76px);
    }

    .market-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-item {
        min-height: 165px;
        padding: 23px;
        border-bottom: 1px solid var(--line);
    }

    .market-item:nth-child(2) {
        border-right: 0;
    }

    .market-item:nth-child(3),
    .market-item:nth-child(4) {
        border-bottom: 0;
    }

    .market-item strong {
        font-size: clamp(25px, 4vw, 34px);
    }

    .gcc-line span {
        padding: 0 14px;
        font-size: 9px;
    }

    .gcc-line span:first-child {
        padding-left: 0;
    }

    .final-cta {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    .final-cta h2 {
        font-size: clamp(54px, 9vw, 80px);
    }

    .footer-container {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 42px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .robotic-page-hero {
        min-height: 780px;
        min-height: 100svh;
        align-items: flex-end;
    }

    .robotic-page-image {
        background-position: 60% center;
    }

    .robotic-page-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.52) 35%,
            rgba(0, 0, 0, 0.94) 80%,
            #050505 100%
        );
    }

    .robotic-page-content {
        width: 100%;
        margin-left: 0;
        padding: 140px var(--page-gutter) 115px;
    }

    .robotic-page-content h1 {
        font-size: clamp(57px, 9vw, 82px);
        line-height: 0.98;
    }

    .robotic-page-content p {
        font-size: 15px;
    }

    .robotic-solutions {
        padding: 90px var(--page-gutter);
    }

    .robotic-solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 45px;
    }

    .robotic-solution-card {
        min-height: 270px;
        padding: 26px;
    }

    .robotic-solution-card h3 {
        padding-top: 45px;
        font-size: 32px;
    }

    .page-hero {
        min-height: 650px;
        min-height: 82svh;
        padding: 145px var(--page-gutter) 90px;
    }

    .page-hero-content h1 {
        font-size: clamp(54px, 9vw, 82px);
    }

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

/* 24. SMALL PHONES */
@media (max-width: 600px) {
    :root {
        --page-gutter: 21px;
    }

    .site-header {
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .brand {
        width: 52px;
    }

    .home-hero {
        min-height: 740px;
        min-height: 100svh;
    }

    .hero-image {
        background-position: 65% center;
    }

    .hero-content {
        padding: 125px var(--page-gutter) 125px;
    }

    .eyebrow,
    .intro-label {
        font-size: 9px;
        letter-spacing: 0.16em;
    }

    .eyebrow {
        margin-bottom: 20px;
    }

    .hero-content h1 {
        margin-bottom: 24px;
        font-size: clamp(45px, 10.5vw, 62px);
        line-height: 0.97;
        letter-spacing: -0.035em;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.85;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
        margin-top: 27px;
    }

    .hero-actions .luxury-button {
        width: 100%;
    }

    .luxury-button {
        min-height: 49px;
        padding: 13px 18px;
        font-size: 9px;
        letter-spacing: 0.15em;
    }

    .hero-bottom {
        left: var(--page-gutter);
        right: var(--page-gutter);
        bottom: 19px;
        justify-content: flex-start;
        gap: 6px 14px;
        font-size: 7px;
        letter-spacing: 0.08em;
    }

    .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .intro-section .section-container,
    .section-heading {
        gap: 23px;
    }

    .intro-content h2,
    .section-heading h2 {
        margin-bottom: 26px;
        font-size: clamp(43px, 9.5vw, 61px);
        line-height: 0.98;
        letter-spacing: -0.025em;
    }

    .intro-content .large-text {
        font-size: 18px;
        line-height: 1.75;
    }

    .intro-content p:not(.large-text),
    .section-heading p {
        font-size: 13px;
        line-height: 1.9;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .solution-card {
        min-height: 430px;
    }

    .card-content {
        padding: 25px;
    }

    .card-content h3 {
        font-size: 39px;
    }

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

    .project-feature {
        min-height: 570px;
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .project-content h2 {
        margin: 22px 0;
        font-size: clamp(43px, 9.5vw, 61px);
        line-height: 0.97;
    }

    .project-content p {
        font-size: 13px;
        line-height: 1.9;
    }

    .market-item {
        min-height: 150px;
        padding: 17px;
        gap: 13px;
    }

    .market-item strong {
        font-size: clamp(23px, 5.8vw, 30px);
    }

    .market-item small {
        font-size: 9px;
    }

    .gcc-line {
        gap: 8px 0;
        margin-top: 25px;
    }

    .gcc-line span {
        margin: 5px 0;
        padding: 0 10px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .final-cta {
        padding: 85px var(--page-gutter);
    }

    .final-cta h2 {
        font-size: clamp(43px, 9.5vw, 63px);
        line-height: 0.97;
    }

    .final-cta p {
        font-size: 13px;
        line-height: 1.9;
    }

    .site-footer {
        padding-top: 55px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px 22px;
        padding-bottom: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column h4 {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .footer-column a {
        font-size: 11px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 9px;
    }

    .robotic-page-content {
        padding: 125px var(--page-gutter) 110px;
    }

    .robotic-page-content h1 {
        margin: 20px 0 25px;
        font-size: clamp(46px, 10.5vw, 65px);
        line-height: 0.97;
    }

    .robotic-page-content p {
        font-size: 13px;
        line-height: 1.85;
    }

    .robotic-page-content .hero-actions {
        align-items: stretch;
    }

    .robotic-solutions {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .robotic-solution-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .robotic-solution-card {
        min-height: 235px;
        padding: 25px;
    }

    .robotic-solution-card h3 {
        padding-top: 38px;
        font-size: 31px;
    }

    .page-hero {
        min-height: 680px;
        min-height: 88svh;
        padding: 125px var(--page-gutter) 75px;
    }

    .page-hero-content h1 {
        font-size: clamp(45px, 9.5vw, 65px);
        line-height: 0.97;
    }

    .page-hero-content p {
        font-size: 13px;
        line-height: 1.9;
    }

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

    .content-card {
        padding: 25px;
    }
}

/* 25. VERY NARROW PHONES */
@media (max-width: 360px) {
    :root {
        --page-gutter: 17px;
    }

    .hero-content h1 {
        font-size: 43px;
    }

    .hero-bottom {
        font-size: 6px;
    }

    .market-item {
        padding: 13px;
    }

    .market-item strong {
        font-size: 22px;
    }

    .footer-container {
        gap: 30px 14px;
    }

    .luxury-button {
        padding-right: 12px;
        padding-left: 12px;
        letter-spacing: 0.1em;
    }
}

/* 26. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
