/* =========================================================
AIRVENOR — Main Stylesheet
Professional Aviation / Premium Glass Cockpit
========================================================= */

/* ---------------------------------------------------------
RESET & BASE
--------------------------------------------------------- */

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
scroll-padding-top: var(--header-height);
}

body {
margin: 0;
min-height: 100vh;
font-family: var(--font-body);
font-size: 16px;
line-height: 1.6;
color: var(--color-text);
background: var(--gradient-background);
overflow-x: hidden;
}

::selection {
background: var(--color-accent);
color: #ffffff;
}

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

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

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

button {
cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details:focus-visible {
outline: 3px solid var(--color-highlight);
outline-offset: 3px;
}

/* ---------------------------------------------------------
LAYOUT
--------------------------------------------------------- */

.container {
width: min(100% - 2rem, var(--max-width));
margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.section {
position: relative;
padding: var(--space-section) 0;
}

/* ---------------------------------------------------------
HEADER
--------------------------------------------------------- */

.site-header {
position: sticky;
top: 0;
z-index: var(--z-header);
width: 100%;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
background: rgba(6, 26, 45, 0.82);
border-bottom: 1px solid var(--color-border-light);
}

.nav {
min-height: var(--header-height);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-md);
padding: 0.7rem 0;
}

/* ---------------------------------------------------------
BRAND / LOGO
--------------------------------------------------------- */

.brand {
display: inline-flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.brand-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
flex-shrink: 0;
overflow: hidden;
border-radius: 50%;
background: linear-gradient(135deg, #040c1a, #0e6457);
box-shadow: var(--shadow-sm);
}

.brand-mark img {
width: 100%;
height: 100%;
object-fit: contain;
}

/* ---------------------------------------------------------
NAVIGATION
--------------------------------------------------------- */

.nav-links {
display: flex;
align-items: center;
justify-content: center;
gap: 1.35rem;
}

.nav-links a {
position: relative;
color: var(--color-text-secondary);
font-size: 0.95rem;
font-weight: 500;
padding: 0.35rem 0;
transition: color var(--transition);
}

.nav-links a::after {
content: "";
position: absolute;
left: 0;
bottom: -0.15rem;
width: 0;
height: 2px;
border-radius: 999px;
background: var(--color-accent);
transition: width var(--transition);
}

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

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

.nav-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 4px;
width: 42px;
height: 42px;
padding: 0.5rem;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
display: block;
width: 24px;
height: 2px;
margin: 0 auto;
border-radius: 2px;
background: var(--color-text);
}

/* ---------------------------------------------------------
BUTTONS
--------------------------------------------------------- */

.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
gap: 0.5rem;
padding: 0.85rem 1.4rem;
border: 1px solid transparent;
border-radius: var(--radius-pill);
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
transition:
transform var(--transition),
box-shadow var(--transition),
background var(--transition),
border-color var(--transition);
}

.button:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-accent);
}

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

.button-primary {
background: var(--gradient-primary);
color: #ffffff;
box-shadow: 0 8px 24px rgba(29, 161, 242, 0.16);
}

.button-primary:hover {
box-shadow: 0 16px 33px rgba(29, 161, 242, 0.28);
}

.button-secondary {
background: rgba(255, 255, 255, 0.07);
border-color: var(--color-border);
color: var(--color-text);
}

.button-secondary:hover {
background: rgba(255, 255, 255, 0.12);
border-color: var(--color-border-strong);
}

.button-ghost {
background: transparent;
border-color: var(--color-border-strong);
color: var(--color-text);
}

.button-ghost:hover {
background: rgba(255, 255, 255, 0.06);
}

.button-small {
min-height: 40px;
padding: 0.65rem 1rem;
font-size: 0.9rem;
}

/* ---------------------------------------------------------
TYPOGRAPHY
--------------------------------------------------------- */

h1,
h2,
h3,
h4,
p {
margin-top: 0;
}

h1,
h2,
h3,
h4 {
font-family: var(--font-heading);
}

h1,
h2 {
line-height: 1.1;
}

h3 {
line-height: 1.25;
}

h1 {
max-width: 850px;
margin-bottom: 1rem;
font-size: clamp(2.5rem, 5vw, 4.5rem);
letter-spacing: -0.03em;
}

h2 {
margin-bottom: 1rem;
font-size: clamp(1.9rem, 3vw, 2.7rem);
letter-spacing: -0.02em;
}

h3 {
font-size: 1.25rem;
}

p {
margin-bottom: 1rem;
}

.eyebrow {
margin-bottom: 0.7rem;
color: var(--color-accent);
text-transform: uppercase;
letter-spacing: 0.16em;
font-size: 0.78rem;
font-weight: 700;
}

.hero-subtitle {
max-width: 680px;
color: var(--color-text-secondary);
font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-heading {
max-width: 720px;
margin-bottom: 2.2rem;
}

.section-heading p {
color: var(--color-text-secondary);
}

/* ---------------------------------------------------------
HERO
--------------------------------------------------------- */

.hero {
min-height: calc(100vh - var(--header-height));
display: flex;
align-items: center;
padding-top: 5rem;
padding-bottom: 5rem;
}

.hero::before {
content: "";
position: absolute;
top: 5%;
right: -10%;
width: 500px;
height: 500px;
border-radius: 50%;
background: rgba(29, 161, 242, 0.08);
filter: blur(80px);
pointer-events: none;
}

.hero-grid,
.grid.two-col,
.footer-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2.5rem;
align-items: center;
}

.hero-copy,
.hero-visual {
position: relative;
z-index: 2;
}

.hero-copy h1 {
margin-bottom: 1rem;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin: 2rem 0;
}

.hero-highlights {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
padding: 0;
margin: 0;
list-style: none;
}

.hero-highlights li {
padding: 0.55rem 0.85rem;
border: 1px solid var(--color-border-light);
border-radius: var(--radius-pill);
background: rgba(255, 255, 255, 0.06);
color: var(--color-text-secondary);
font-size: 0.9rem;
}

.hero-visual {
max-width: 100%;
}

.hero-card {
padding: 1rem;
overflow: hidden;
}

.hero-card img {
width: 100%;
border-radius: var(--radius-md);
}

/* ---------------------------------------------------------
GLASS CARDS
--------------------------------------------------------- */

.glass-card,
.card,
.stat-card,
.testimonial-card,
.contact-card,
.faq-wrapper details,
.cta-card {
background: var(--glass-background);
border: 1px solid var(--glass-border);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
box-shadow: var(--shadow-sm);
}

.glass-card,
.card,
.stat-card,
.testimonial-card,
.contact-card,
.faq-wrapper details,
.cta-card,
.toolbar {
border-radius: var(--radius-lg);
}

.card,
.stat-card,
.testimonial-card,
.contact-card {
padding: 1.6rem;
}

/* ---------------------------------------------------------
COMPANY OVERVIEW
--------------------------------------------------------- */

.company-overview {
position: relative;
}

.company-overview .glass-card {
padding: 2rem;
}

.company-overview .glass-card h3 {
margin-bottom: 1rem;
}

/* ---------------------------------------------------------
BRAND STRIP
--------------------------------------------------------- */

.brand-strip {
padding-top: 2rem;
padding-bottom: 2rem;
}

.brand-strip-title {
color: var(--color-text-secondary);
font-size: 0.95rem;
}

.brand-pill-row {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
margin-top: 1rem;
}

.brand-pill {
padding: 0.75rem 1rem;
border: 1px solid var(--color-border-light);
border-radius: var(--radius-pill);
background: rgba(255, 255, 255, 0.06);
color: var(--color-text-secondary);
font-size: 0.9rem;
transition:
transform var(--transition),
background var(--transition),
color var(--transition);
}

.brand-pill:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.1);
color: var(--color-text);
}

/* ---------------------------------------------------------
GRID / CARDS
--------------------------------------------------------- */

.card-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.5rem;
}

.card {
position: relative;
overflow: hidden;
transition:
transform var(--transition),
border-color var(--transition),
background var(--transition),
box-shadow var(--transition);
}

.card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(
90deg,
transparent,
var(--color-accent),
transparent
);
opacity: 0;
transition: opacity var(--transition);
}

.card:hover {
transform: translateY(-6px);
border-color: rgba(29, 161, 242, 0.25);
background: var(--color-surface-hover);
box-shadow: var(--shadow-md);
}

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

.card h3 {
margin-bottom: 0.65rem;
}

.card p {
margin-bottom: 0;
color: var(--color-text-secondary);
}

/* ---------------------------------------------------------
FEATURE LIST
--------------------------------------------------------- */

.feature-list {
padding-left: 1.15rem;
margin-bottom: 1.5rem;
color: var(--color-text-secondary);
}

.feature-list li + li {
margin-top: 0.65rem;
}

.feature-list li::marker {
color: var(--color-accent);
}

/* ---------------------------------------------------------
LINKS
--------------------------------------------------------- */

.text-link {
display: inline-flex;
align-items: center;
gap: 0.35rem;
color: var(--color-accent);
font-weight: 600;
transition:
color var(--transition),
transform var(--transition);
}

.text-link:hover {
color: var(--color-accent-light);
}

/* ---------------------------------------------------------
FEATURED APP
--------------------------------------------------------- */

.featured-app {
position: relative;
}

.feature-panel {
padding: 1rem;
}

.feature-panel > div:first-child {
overflow: hidden;
}

.feature-panel img {
width: 100%;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
}

.feature-panel h2 {
margin-bottom: 1rem;
}

/* ---------------------------------------------------------
WHY AIRVENOR
--------------------------------------------------------- */

.why-airvenor .card {
min-height: 100%;
}

/* ---------------------------------------------------------
STATISTICS
--------------------------------------------------------- */

.stats-section {
padding-top: 4rem;
padding-bottom: 4rem;
}

.stats-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.25rem;
}

.stat-card {
text-align: center;
padding: 1.75rem 1rem;
}

.stat-card .counter {
display: block;
margin-bottom: 0.35rem;
color: var(--color-text);
font-family: var(--font-heading);
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 700;
line-height: 1;
}

.stat-card p {
margin: 0;
color: var(--color-text-secondary);
font-size: 0.9rem;
}

/* ---------------------------------------------------------
TESTIMONIALS
--------------------------------------------------------- */

.testimonials {
position: relative;
}

.testimonial-slider {
position: relative;
max-width: 850px;
}

.testimonial-card {
display: none;
padding: 2rem;
}

.testimonial-card.active {
display: block;
}

.testimonial-card p {
margin-bottom: 1rem;
color: var(--color-text);
font-size: 1.1rem;
}

.testimonial-card strong {
color: var(--color-text-secondary);
font-size: 0.9rem;
}

/* ---------------------------------------------------------
FAQ
--------------------------------------------------------- */

.faq-section {
position: relative;
}

.faq-list {
display: grid;
gap: 1rem;
}

.faq-list details {
padding: 1.2rem 1.3rem;
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
background: var(--color-surface);
transition:
background var(--transition),
border-color var(--transition);
}

.faq-list details:hover,
.faq-list details[open] {
background: var(--color-surface-hover);
border-color: rgba(29, 161, 242, 0.25);
}

.faq-list summary {
cursor: pointer;
font-weight: 600;
list-style: none;
}

.faq-list summary::-webkit-details-marker {
display: none;
}

.faq-list summary::after {
content: "+";
float: right;
color: var(--color-accent);
font-size: 1.2rem;
}

.faq-list details[open] summary::after {
transform: rotate(45deg);
}

.faq-list details p {
margin: 1rem 0 0;
color: var(--color-text-secondary);
}

/* ---------------------------------------------------------
TOOLBAR
--------------------------------------------------------- */

.toolbar {
display: flex;
justify-content: space-between;
gap: 1rem;
padding: 1rem;
margin-bottom: 2rem;
background: rgba(255, 255, 255, 0.06);
}

.toolbar input,
.toolbar select {
width: 100%;
border: 1px solid var(--color-border);
border-radius: var(--radius-pill);
padding: 0.9rem 1rem;
background: rgba(6, 26, 45, 0.8);
color: var(--color-text);
}

/* ---------------------------------------------------------
CONTACT
--------------------------------------------------------- */

.contact-form {
display: grid;
gap: 0.85rem;
}

.contact-form input,
.contact-form textarea {
width: 100%;
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
padding: 0.9rem 1rem;
background: rgba(6, 26, 45, 0.8);
color: var(--color-text);
}

.contact-form input {
border-radius: var(--radius-pill);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(--color-accent);
background: rgba(6, 26, 45, 0.95);
outline: none;
}

.contact-card p {
color: var(--color-text-secondary);
}

/* ---------------------------------------------------------
CTA
--------------------------------------------------------- */

.cta-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
padding: 2rem;
}

.cta-card > div:first-child {
max-width: 620px;
}

.cta-card p {
color: var(--color-text-secondary);
}

/* ---------------------------------------------------------
PAGE HERO
--------------------------------------------------------- */

.page-hero {
padding-top: 5rem;
padding-bottom: 3rem;
}

.page-hero p {
max-width: 720px;
color: var(--color-text-secondary);
font-size: 1.05rem;
}

/* ---------------------------------------------------------
LEGAL
--------------------------------------------------------- */

.legal-content {
max-width: var(--content-width);
}

.legal-content p,
.legal-content li {
color: var(--color-text-secondary);
}

.legal-content h2 {
margin-top: 2.5rem;
}

.legal-content h3 {
margin-top: 2rem;
}

/* ---------------------------------------------------------
FOOTER
--------------------------------------------------------- */

.site-footer {
position: relative;
padding: 4rem 0 2rem;
border-top: 1px solid var(--color-border-light);
background: rgba(6, 26, 45, 0.9);
}

.footer-grid {
gap: 2.5rem;
align-items: start;
}

.site-footer .brand-mark {
width: 64px;
height: 64px;
margin-bottom: 1rem;
}

.site-footer p {
max-width: 360px;
color: var(--color-text-secondary);
}

.site-footer h3 {
margin-bottom: 1rem;
font-size: 1rem;
}

.site-footer ul {
padding: 0;
margin: 0;
list-style: none;
}

.site-footer li + li {
margin-top: 0.55rem;
}

.site-footer li a {
color: var(--color-text-secondary);
transition: color var(--transition);
}

.site-footer li a:hover {
color: var(--color-text);
}

.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: 2.5rem;
padding-top: 1.25rem;
border-top: 1px solid var(--color-border-light);
}

.footer-bottom p {
margin: 0;
color: var(--color-text-muted);
font-size: 0.9rem;
}

.back-to-top {
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: 1px solid var(--color-border);
border-radius: 50%;
background: rgba(255, 255, 255, 0.06);
color: var(--color-text);
}

/* ---------------------------------------------------------
404
--------------------------------------------------------- */

.not-found {
min-height: 60vh;
display: grid;
place-items: center;
text-align: center;
}

/* ---------------------------------------------------------
ACCESSIBILITY
--------------------------------------------------------- */

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
