/* ── PERMOBIL TR — GLOBAL STYLES ─────────────────────────────── */
:root {
  --c-navy:       #1a2a4a;
  --c-navy-deep:  #0f1e36;
  --c-orange:     #e8511a;
  --c-orange-lt:  #f5763e;
  --c-white:      #ffffff;
  --c-off:        #f5f5f5;
  --c-border:     #e2e2e2;
  --c-text:       #222222;
  --c-text-muted: #666666;
  --c-text-light: #999999;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 2px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.16);
  --transition:   .22s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --container:    1280px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── LAYOUT ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media(max-width:768px){ .container { padding: 0 16px; } }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; letter-spacing: .02em; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--c-orange); color: var(--c-white); }
.btn-primary:hover { background: var(--c-orange-lt); transform: translateY(-1px); }
.btn-navy { background: var(--c-navy); color: var(--c-white); }
.btn-navy:hover { background: var(--c-navy-deep); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--c-navy); color: var(--c-navy); padding: 10px 26px; }
.btn-outline:hover { background: var(--c-navy); color: var(--c-white); }
.btn-outline-white { border: 2px solid rgba(255,255,255,.6); color: var(--c-white); padding: 10px 26px; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--c-white); }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .82rem; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--c-white); box-shadow: 0 1px 0 var(--c-border); }
.header-top { background: var(--c-navy); color: rgba(255,255,255,.8); font-size: .78rem; padding: 6px 0; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-top-links { display: flex; gap: 20px; }
.header-top-links a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.header-top-links a:hover { color: var(--c-white); }

.header-nav { padding: 0; }
.nav-inner { display: flex; align-items: center; height: 70px; gap: 32px; }
.logo img { height: 36px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; margin-left: 24px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 10px 14px; font-size: .88rem; font-weight: 500; color: var(--c-navy); border-radius: var(--radius); transition: all var(--transition); }
.nav-link:hover, .nav-item:hover .nav-link { color: var(--c-orange); background: rgba(232,81,26,.06); }
.nav-arrow { font-size: .65rem; transition: transform var(--transition); }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* MEGA MENU */
.mega-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 680px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px 0; margin-top: 8px; }
.nav-item:hover .mega-menu { display: block; }
.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 24px; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); transition: background var(--transition); }
.mega-item:hover { background: var(--c-off); }
.mega-icon { width: 36px; height: 36px; color: var(--c-orange); flex-shrink: 0; }
.mega-icon svg { width: 36px; height: 36px; }
.mega-item strong { display: block; font-size: .88rem; font-weight: 600; color: var(--c-navy); margin-bottom: 2px; }
.mega-item span { font-size: .78rem; color: var(--c-text-muted); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-navy); border-radius: 2px; transition: all var(--transition); }

/* ── HERO / SLIDER ── */
.hero { position: relative; overflow: hidden; background: var(--c-navy-deep); min-height: 560px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .55; }
.hero-content { position: relative; z-index: 2; max-width: 640px; color: var(--c-white); padding: 80px 0; }
.hero-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 16px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Static full-width hero (no slider) */
.hero-static { background: linear-gradient(135deg, var(--c-navy-deep) 0%, #243a5e 100%); }

/* ── SECTION LAYOUT ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }
.section-dark { background: var(--c-navy); color: var(--c-white); }
.section-alt { background: var(--c-off); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--c-navy); line-height: 1.2; margin-bottom: 16px; }
.section-dark .section-title { color: var(--c-white); }
.section-desc { color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.7; }
.section-dark .section-desc { color: rgba(255,255,255,.7); }

/* ── CARDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:1024px){ .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); transition: all var(--transition); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--c-off); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 8px; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--c-navy); margin-bottom: 10px; line-height: 1.3; }
.card-desc { font-size: .88rem; color: var(--c-text-muted); line-height: 1.6; flex: 1; }
.card-footer { padding: 0 24px 20px; display: flex; align-items: center; justify-content: space-between; }
.card-link { font-size: .85rem; font-weight: 600; color: var(--c-orange); display: flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.card-link:hover { gap: 10px; }

/* ── CATEGORY CARDS ── */
.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/2; display: flex; align-items: flex-end; }
.cat-card-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; transition: transform .5s ease; }
.cat-card:hover .cat-card-bg { transform: scale(1.05); }
.cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,30,54,.85) 0%, rgba(15,30,54,.2) 60%, transparent 100%); }
.cat-card-body { position: relative; z-index: 2; padding: 28px; color: var(--c-white); }
.cat-card-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.cat-card-desc { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.cat-card-link { font-size: .82rem; font-weight: 700; color: var(--c-orange); letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }

/* ── PRODUCT DETAIL ── */
.product-hero { padding: 60px 0; background: var(--c-off); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media(max-width:900px){ .product-hero-grid { grid-template-columns: 1fr; } }
.product-gallery { position: sticky; top: 90px; }
.product-main-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-white); border: 1px solid var(--c-border); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 32px; }
.product-main-img img { max-height: 400px; object-fit: contain; transition: transform .3s ease; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.product-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--c-white); display: flex; align-items: center; justify-content: center; padding: 6px; transition: border-color var(--transition); }
.product-thumb.active, .product-thumb:hover { border-color: var(--c-orange); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-info { padding: 8px 0; }
.product-breadcrumb { font-size: .78rem; color: var(--c-text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-breadcrumb a:hover { color: var(--c-orange); }
.product-brand { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 10px; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--c-navy); line-height: 1.15; margin-bottom: 8px; }
.product-tagline { font-size: 1.05rem; color: var(--c-text-muted); font-style: italic; margin-bottom: 20px; }
.product-short-desc { font-size: .95rem; line-height: 1.75; color: var(--c-text); margin-bottom: 28px; }

.product-badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: .78rem; font-weight: 600; background: var(--c-off); border: 1px solid var(--c-border); color: var(--c-navy); }
.badge-primary { background: rgba(232,81,26,.1); border-color: rgba(232,81,26,.3); color: var(--c-orange); }

.product-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.product-docs-links { margin-top: 20px; }
.product-docs-links h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); margin-bottom: 10px; }
.doc-link { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--c-border); font-size: .88rem; color: var(--c-navy); font-weight: 500; transition: color var(--transition); }
.doc-link:hover { color: var(--c-orange); }
.doc-icon { width: 20px; height: 20px; color: var(--c-orange); flex-shrink: 0; }

/* TABS */
.tabs-section { padding: 60px 0; }
.tab-nav { display: flex; border-bottom: 2px solid var(--c-border); gap: 0; overflow-x: auto; margin-bottom: 40px; }
.tab-btn { padding: 12px 24px; font-size: .88rem; font-weight: 600; color: var(--c-text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all var(--transition); }
.tab-btn.active { color: var(--c-orange); border-bottom-color: var(--c-orange); }
.tab-btn:hover { color: var(--c-navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* SPECS TABLE */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th { background: var(--c-navy); color: var(--c-white); text-align: left; padding: 12px 16px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.specs-table td { padding: 11px 16px; font-size: .88rem; border-bottom: 1px solid var(--c-border); }
.specs-table tr:nth-child(even) td { background: var(--c-off); }
.specs-table td:first-child { font-weight: 600; color: var(--c-navy); width: 45%; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media(max-width:768px){ .features-grid { grid-template-columns: 1fr; } }
.feature-item { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--c-border); }
.feature-icon { width: 44px; height: 44px; background: rgba(232,81,26,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--c-orange); }
.feature-title { font-size: .95rem; font-weight: 700; color: var(--c-navy); margin-bottom: 8px; }
.feature-desc { font-size: .85rem; color: var(--c-text-muted); line-height: 1.65; }

/* RELATED PRODUCTS */
.related-section { padding: 60px 0; background: var(--c-off); }

/* ── ABOUT PAGE ── */
.about-hero { padding: 100px 0; background: linear-gradient(135deg, var(--c-navy-deep) 0%, #1e3a6e 100%); color: var(--c-white); text-align: center; }
.about-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; margin-bottom: 20px; }
.about-hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto; color: rgba(255,255,255,.8); }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--c-border); border-radius: var(--radius-lg); overflow: hidden; margin: 60px 0; }
.stat-box { background: var(--c-white); padding: 40px 24px; text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 900; color: var(--c-orange); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: .85rem; color: var(--c-text-muted); font-weight: 500; }
@media(max-width:768px){ .stats-row { grid-template-columns: repeat(2,1fr); } }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
@media(max-width:900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--c-navy); color: var(--c-white); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 40px; height: 40px; background: rgba(255,255,255,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--c-navy); margin-bottom: 7px; }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius); font-size: .9rem; font-family: var(--font); transition: border-color var(--transition); background: var(--c-white); }
.form-control:focus { outline: none; border-color: var(--c-orange); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── BREADCRUMB ── */
.breadcrumb-bar { background: var(--c-off); border-bottom: 1px solid var(--c-border); padding: 12px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--c-text-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb-sep { color: var(--c-border); }

/* ── PAGE HEADER ── */
.page-header { background: var(--c-navy); color: var(--c-white); padding: 60px 0; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 600px; }

/* ── ALERTS ── */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: #ecfdf5; border: 1px solid #86efac; color: #166534; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-orange { color: var(--c-orange); }
.text-navy { color: var(--c-navy); }
.text-muted { color: var(--c-text-muted); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.gap-12 { gap: 48px; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* ── FOOTER ── */
.site-footer { background: var(--c-navy-deep); color: rgba(255,255,255,.7); }
.footer-main { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 40px; }
@media(max-width:1100px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { margin-bottom: 18px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.footer-social a:hover { background: var(--c-orange); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--c-white); }
.footer-col p { font-size: .88rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--c-white); }

/* ── MOBILE RESPONSIVE ── */
@media(max-width:768px) {
  .nav-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--c-white); flex-direction: column; padding: 80px 24px 24px; z-index: 999; overflow-y: auto; gap: 0; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; z-index: 1001; }
  .mega-menu { position: static; transform: none; min-width: unset; box-shadow: none; border: none; border-radius: 0; padding: 8px 0 8px 16px; margin-top: 0; display: none; }
  .nav-item.open .mega-menu { display: block; }
  .mega-menu-grid { grid-template-columns: 1fr; gap: 2px; padding: 0; }
  .header-top { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hero { min-height: 420px; }
  .hero-content { padding: 60px 0; }
  .section { padding: 56px 0; }
  .tabs-section { padding: 40px 0; }
}

/* ── LOADING / SKELETON ── */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
