/*
Theme Name: US American Eagle Aviation
Theme URI: https://usamericaneagle.com
Author: US American Eagle Aviation Corp
Description: Custom bilingual aviation sourcing and MRO support theme.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: us-american-eagle
*/

:root {
  --navy: #06295f;
  --navy-deep: #031a3d;
  --blue: #0d4b98;
  --red: #d8132a;
  --white: #fff;
  --mist: #f2f6fb;
  --ink: #13253f;
  --muted: #5b6980;
  --line: #dbe4ef;
  --shadow: 0 18px 45px rgba(3, 26, 61, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
/* The previous PopularFX/Pagelayer setup injects its saved global header and
   footer through plugin hooks even after a theme change. Hide only those
   legacy template parts while this theme is active. */
body.wp-theme-us-american-eagle-aviation > .pagelayer-header,
body.wp-theme-us-american-eagle-aviation > .pagelayer-footer,
body.wp-theme-us-american-eagle-aviation > header.pagelayer-header,
body.wp-theme-us-american-eagle-aviation > footer.pagelayer-footer { display: none !important; }
body.wp-theme-us-american-eagle-aviation > main { display: contents; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 30px; height: 3px; background: var(--red); }
h1, h2, h3 { color: var(--navy); line-height: 1.1; margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.2rem; }
p { margin-top: 0; }

.topbar { background: var(--navy-deep); color: #dbe8fb; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 18px; }
.topbar-links, .language-switch { display: flex; align-items: center; gap: 20px; }
.language-switch a { opacity: .7; }
.language-switch a.active, .language-switch a:hover { opacity: 1; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 310px; }
.brand img { width: 82px; height: 70px; object-fit: cover; object-position: top; }
.brand-title { display: block; color: var(--navy); font-size: 1.05rem; font-weight: 900; letter-spacing: .035em; line-height: 1.05; }
.brand-sub { display: block; color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .27em; }
.brand-tag { display: block; margin-top: 5px; color: #59616e; font-family: Georgia, serif; font-size: .74rem; font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { position: relative; color: var(--navy); font-size: .79rem; font-weight: 800; white-space: nowrap; }
.main-nav a:not(.btn):after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--red); transition: right .2s ease; }
.main-nav a:hover:after, .main-nav a.current:after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 6px; color: #fff; background: var(--navy); font-size: 1.4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 4px; font-size: .82rem; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(3,26,61,.18); }
.btn-red { color: #fff; background: var(--red); }
.btn-white { color: var(--navy); background: #fff; border-color: #fff; }
.btn-outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }

.hero { position: relative; min-height: 670px; overflow: hidden; color: #fff; background-color: var(--navy-deep); background-image: url('assets/hero-aircraft-v2.png'); background-repeat: no-repeat; background-size: cover; background-position: center; }
.hero:before { display: none; }
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,26,61,.98) 0%, rgba(3,26,61,.91) 34%, rgba(3,26,61,.50) 52%, rgba(3,26,61,.03) 78%, rgba(3,26,61,.02) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 670px; gap: 40px; }
.hero h1 { max-width: 760px; margin: 20px 0; color: #fff; }
.hero h1 span { color: #ff4254; }
.hero-copy { max-width: 700px; color: #e1ecfb; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { position: relative; min-height: 490px; }
.wing { position: absolute; top: 44%; left: 0; width: 118%; height: 20px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.7), rgba(255,255,255,.05)); clip-path: polygon(0 45%, 100% 0, 88% 100%, 7% 75%); transform: rotate(-7deg); }
.fuselage { position: absolute; top: 14%; left: 41%; width: 136px; height: 350px; border-radius: 52% 52% 42% 42%; background: linear-gradient(90deg, #8ea9c7, #fff 42%, #bed0e4 72%, #6384aa); box-shadow: 0 40px 80px rgba(0,0,0,.28); transform: rotate(-7deg); }
.fuselage:before { content: ""; position: absolute; top: 44px; left: 28px; width: 80px; height: 34px; border-radius: 50% 50% 15% 15%; background: #082d61; box-shadow: inset 0 0 14px #4ba1db; }
.fuselage:after { content: ""; position: absolute; left: -30px; bottom: 42px; width: 196px; height: 32px; background: #d8e4ef; clip-path: polygon(0 35%, 100% 0, 79% 90%, 20% 100%); }
.route-line { position: absolute; inset: 30px 0 auto 0; height: 280px; border: 2px dashed rgba(255,255,255,.35); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-10deg); }
.hero .wing, .hero .fuselage, .hero .route-line { display: none; }
.trust-strip { position: relative; z-index: 3; margin-top: -55px; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.trust-item { padding: 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: .93rem; }
.trust-item span { color: var(--muted); font-size: .8rem; }

.section { padding: 100px 0; }
.section-alt { background: var(--mist); }
.section-dark { color: #fff; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.section-heading p { max-width: 610px; color: var(--muted); }
.section-dark .section-heading p { color: #cfdbeb; }
.services-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.service-card { position: relative; min-height: 390px; padding: 0 17px 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 26px rgba(3,26,61,.06); }
.service-card:after { content: ""; position: absolute; right: -55px; bottom: -60px; width: 145px; height: 145px; border-radius: 50%; background: rgba(13,75,152,.06); }
.service-card:hover { border-color: #a9bdd5; transform: translateY(-4px); transition: .2s ease; }
.service-photo { height: 112px; margin: 0 -17px 16px; background-image: url('assets/design-reference.png'); background-repeat: no-repeat; background-size: 665% auto; border-bottom: 3px solid var(--red); }
.service-photo-01 { background-position: 4.1% 43.5%; }
.service-photo-02 { background-position: 22.8% 43.5%; }
.service-photo-03 { background-position: 41.1% 43.5%; }
.service-photo-04 { background-position: 59.5% 43.5%; }
.service-photo-05 { background-position: 78% 43.5%; }
.service-photo-06 { background-position: 96.3% 43.5%; }
.service-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; color: #fff; background: var(--navy); font-size: .78rem; font-weight: 900; }
.service-card h3 { font-size: 1rem; }
.service-card p { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.service-link { color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-panel { padding: 50px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); border-radius: 8px; box-shadow: var(--shadow); }
.feature-panel h2 { color: #fff; }
.check-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: #ff4254; font-weight: 900; }
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: steps; }
.process-card { padding: 28px; background: #fff; border-top: 4px solid var(--red); box-shadow: 0 8px 28px rgba(3,26,61,.08); counter-increment: steps; }
.process-card:before { content: "0" counter(steps); display: block; margin-bottom: 18px; color: #aab9ca; font-size: 2.2rem; font-weight: 900; }

.rfq-wrap { display: grid; grid-template-columns: .78fr 1.22fr; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); }
.rfq-intro { padding: 54px; color: #fff; background: linear-gradient(145deg, var(--navy-deep), var(--navy)); }
.rfq-intro h2 { color: #fff; }
.rfq-form { padding: 46px; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #c9d5e3; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { color: var(--muted); font-size: .76rem; }
.notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 4px; font-weight: 700; }
.notice-success { color: #146c43; background: #dff5e9; }
.notice-error { color: #842029; background: #f8d7da; }

.page-hero { padding: 110px 0 92px; color: #fff; background: linear-gradient(125deg, var(--navy-deep), var(--blue)); }
.page-hero h1 { max-width: 850px; margin: 16px 0; color: #fff; font-size: clamp(2.5rem,5vw,4.5rem); }
.page-hero p { max-width: 720px; color: #dbe8f8; font-size: 1.08rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.detail-card { padding: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; }
.contact-card { padding: 32px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.contact-card strong { display: block; margin: 13px 0 8px; color: var(--navy); }

.international-band { position: relative; overflow: hidden; padding: 66px 0; color: #fff; background-color: var(--navy-deep); background-image: linear-gradient(90deg, rgba(3,26,61,.98), rgba(3,26,61,.78) 54%, rgba(3,26,61,.22)), url('assets/bosphorus-banner-v2.png'); background-repeat: no-repeat; background-size: cover; background-position: center; }
.international-band h2 { max-width: 760px; margin-bottom: 14px; color: #fff; font-size: clamp(2rem,3vw,3rem); }
.international-band p { max-width: 760px; color: #dbe8f8; }
.international-band .market-label { position: absolute; right: 7%; top: 50%; max-width: 300px; transform: translateY(-50%); color: #fff; font-family: Georgia, serif; font-size: 1.5rem; font-style: italic; text-align: right; }

.cta-band { padding: 58px 0; color: #fff; background: var(--red); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.8rem,3vw,2.8rem); }
.site-footer { color: #d5e1f2; background: var(--navy-deep); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding: 72px 0 45px; }
.footer-brand { max-width: 420px; }
.footer-brand .brand-title, .footer-brand .brand-sub { color: #fff; }
.footer-main h3 { color: #fff; font-family: Arial, sans-serif; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { display: grid; gap: 9px; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .76rem; }

@media (max-width: 1080px) {
  .header-inner { min-height: 78px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 20px; }
  .main-nav a:after { display: none; }
  .main-nav .btn { margin-top: 8px; color: #fff; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(3,1fr); }
  .process { grid-template-columns: repeat(2,1fr); }
  .rfq-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 28px, 1180px); }
  .topbar-links { display: none; }
  .topbar .container { justify-content: flex-end; }
  .brand { min-width: auto; }
  .brand img { width: 62px; height: 54px; }
  .brand-title { font-size: .82rem; }
  .brand-sub { font-size: .58rem; }
  .brand-tag { display: none; }
  .hero, .hero-inner { min-height: 610px; }
  .hero h1 { font-size: 2.7rem; }
  .hero { background-position: 67% center; }
  .hero:after { background: linear-gradient(90deg, rgba(3,26,61,.96), rgba(3,26,61,.78) 72%, rgba(3,26,61,.48)); }
  .trust-strip { margin-top: 0; }
  .trust-grid, .services-grid, .split, .detail-grid, .contact-grid, .footer-main { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-photo { height: 220px; }
  .international-band .market-label { position: static; margin-top: 30px; transform: none; text-align: left; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-heading { display: block; }
  .process { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .rfq-intro, .rfq-form, .feature-panel { padding: 34px 24px; }
  .cta-band .container, .footer-bottom { align-items: flex-start; flex-direction: column; }
}
