:root {
  --ink: #06121f;
  --navy: #081a2b;
  --steel: #a8b5c2;
  --paper: #f2f0ea;
  --amber: #f5a623;
  --amber-light: #ffc65c;
  --line: rgba(255,255,255,.14);
  --background: #ffffff;
  --foreground: #101820;
  --primary: #081a2b;
  --primary-foreground: #ffffff;
  --secondary: #edf0f2;
  --secondary-foreground: #081a2b;
  --muted: #f3f4f5;
  --muted-foreground: #63707a;
  --accent: #f5a623;
  --accent-foreground: #081a2b;
  --destructive: #dc2626;
  --border: #d9dee2;
  --input: #d9dee2;
  --ring: #f5a623;
  --popover: #ffffff;
  --popover-foreground: #101820;
  --radius: .3rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: #fff; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
input, textarea { width: 100%; border: 1px solid #d9dfe2; padding: 11px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(245,166,35,.18); }
button { cursor: pointer; }

.site-header {
  position: absolute; z-index: 20; inset: 0 0 auto; height: 92px; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.brand-logo { display: block; width: 238px; height: 69px; background: url('/asil-logo.svg') left center/contain no-repeat; }
.brand-mark { width: 42px; height: 42px; position: relative; display: grid; place-items: center; transform: rotate(45deg); border: 2px solid var(--amber); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; width: 22px; height: 2px; background: var(--amber); }
.brand-mark::before { transform: rotate(90deg); }
.brand-mark::after { width: 12px; transform: translate(5px,-5px) rotate(90deg); }
.brand-mark span { width: 12px; transform: translate(-5px,5px); }
.brand-copy { display: flex; flex-direction: column; line-height: .9; letter-spacing: .12em; }
.brand-copy strong { font-size: 21px; }
.brand-copy small { font-size: 9px; color: #b8c2cc; margin-top: 7px; letter-spacing: .34em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px,3vw,48px); font-size: 13px; letter-spacing: .03em; }
.main-nav > a:not(.nav-phone) { color: #c6ced5; transition: color .25s; }
.main-nav > a:hover { color: var(--amber-light); }
.nav-phone { display: flex; align-items: center; gap: 9px; padding-left: 25px; border-left: 1px solid var(--line); font-weight: 700; }
.nav-phone svg { color: var(--amber); }
.menu-toggle { display: none; color: #fff; background: none; border: 0; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 150px 8vw 100px; }
.hero-image { position: absolute; z-index: -3; inset: 0; background: url('/asil-mekanik-hero.png') center/cover no-repeat; animation: heroDrift 18s ease-in-out infinite alternate; transform-origin: 65% 50%; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(3,13,24,.98) 0%, rgba(3,13,24,.87) 35%, rgba(3,13,24,.28) 66%, rgba(3,13,24,.16) 100%), linear-gradient(0deg, rgba(3,13,24,.6), transparent 50%); }
.hero-grid { position: absolute; z-index: -1; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg,#000,transparent 70%); }
.energy-orbit { position: absolute; z-index: -1; border: 1px solid rgba(245,166,35,.45); border-radius: 50%; animation: orbit 13s linear infinite; }
.energy-orbit::after { content: ""; position: absolute; top: 18%; left: 6%; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 25px var(--amber); }
.orbit-one { width: 520px; height: 520px; right: 10%; top: 18%; transform: rotateX(67deg) rotateZ(14deg); }
.orbit-two { width: 780px; height: 260px; right: -14%; bottom: 4%; animation-direction: reverse; }
.hero-content { max-width: 750px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 25px; font-size: 11px; letter-spacing: .25em; font-weight: 700; color: #c3cbd2; }
.eyebrow > span { width: 42px; height: 2px; background: var(--amber); }
.eyebrow.dark { color: #4e5d69; }
.hero h1, .section-heading h2, .about h2, .contact h2 { margin: 0; font-size: clamp(52px,6.6vw,100px); line-height: .96; letter-spacing: -.055em; font-weight: 700; }
.hero h1 em, .section-heading h2 em, .contact h2 em { font-style: normal; color: var(--amber); font-weight: 300; }
.hero-description { max-width: 580px; font-size: clamp(16px,1.4vw,21px); line-height: 1.7; color: #aeb9c2; margin: 32px 0 42px; }
.hero-actions { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.primary-cta { display: inline-flex; align-items: center; gap: 28px; padding: 19px 23px; background: var(--amber); color: #0c1720; font-size: 13px; font-weight: 800; letter-spacing: .03em; transition: transform .25s, background .25s; }
.primary-cta:hover { transform: translateY(-3px); background: var(--amber-light); }
.primary-cta.light { background: #fff; }
.text-cta { font-size: 13px; color: #c4ccd2; display: inline-flex; gap: 14px; align-items: center; }
.text-cta span { color: var(--amber); }
.hero-index { position: absolute; right: 5vw; bottom: 70px; display: flex; align-items: flex-end; gap: 12px; }
.hero-index strong { font-size: 50px; color: var(--amber); line-height: 1; }
.hero-index span { color: #aeb8c0; font-size: 11px; padding-bottom: 6px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue { position: absolute; left: 5vw; bottom: 30px; display: flex; gap: 10px; align-items: center; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: #778796; }
.scroll-cue span { height: 1px; width: 30px; background: var(--amber); }

.services { background: var(--paper); color: var(--ink); padding: 130px 7vw; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; max-width: 1500px; margin: 0 auto 76px; }
.section-heading h2 { font-size: clamp(46px,5.5vw,80px); }
.section-heading > p { max-width: 420px; margin: 0 0 8px; color: #5d6973; line-height: 1.75; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1500px; margin: 0 auto; border-top: 1px solid #cfd2d2; border-left: 1px solid #cfd2d2; }
.service-card { min-height: 390px; position: relative; border-right: 1px solid #cfd2d2; border-bottom: 1px solid #cfd2d2; transition: background .3s, color .3s, transform .3s; overflow: hidden; }
.service-card:hover { background: var(--navy); color: #fff; transform: translateY(-7px); z-index: 2; box-shadow: 0 22px 45px rgba(5,19,31,.2); }
.service-photo { height: 195px; position: relative; background-image: linear-gradient(180deg,rgba(3,14,24,.04),rgba(3,14,24,.45)), var(--service-sprite); background-size: 100% 100%, 200% 200%; background-position: center, var(--service-x) var(--service-y); overflow: hidden; transition: transform .5s ease, filter .3s; }
.service-card:hover .service-photo { transform: scale(1.035); filter: saturate(1.12); }
.service-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent,rgba(5,18,30,.72)); }
.service-number { position: absolute; z-index: 2; left: 20px; top: 18px; color: #fff; font-size: 11px; letter-spacing: .18em; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.service-icon-wrap { position: absolute; z-index: 2; right: 18px; bottom: 0; width: 54px; height: 54px; display: grid; place-items: center; background: var(--amber); color: var(--ink); transform: translateY(50%); }
.service-icon { width: 28px; height: 28px; }
.service-copy { position: relative; min-height: 195px; padding: 38px 26px 44px; background: rgba(242,240,234,.97); transition: background .3s; }
.service-card:hover .service-copy { background: var(--navy); }
.service-card h3 { font-size: 20px; margin: 0 0 13px; }
.service-card p { color: #6d777e; font-size: 13px; line-height: 1.65; margin: 0; max-width: 240px; }
.service-card:hover p { color: #aab5bd; }
.card-line { position: absolute; left: 26px; bottom: 25px; width: 35px; height: 2px; background: var(--amber); transition: width .3s; }
.service-card:hover .card-line { width: calc(100% - 52px); }

.about { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; background: #071725; }
.about-visual { min-height: 650px; position: relative; overflow: hidden; background: linear-gradient(135deg,rgba(245,166,35,.13),transparent 45%), url('/asil-mekanik-hero.png') 75% center/cover; filter: saturate(.7); }
.about-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 55%,#071725), linear-gradient(0deg,rgba(7,23,37,.65),transparent); }
.turbine { position: absolute; z-index: 1; width: 260px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(245,166,35,.38); border-radius: 50%; animation: spin 25s linear infinite; }
.turbine::before, .turbine::after, .turbine span { content: ""; position: absolute; left: 50%; top: 50%; width: 38%; height: 2px; background: linear-gradient(90deg,var(--amber),transparent); transform-origin: left center; }
.turbine::after { transform: rotate(120deg); }.turbine span:nth-child(1) { transform: rotate(240deg); }.turbine span:nth-child(2) { width: 15px; height: 15px; border-radius: 50%; background: var(--amber); transform: translate(-50%,-50%); }
.about-copy { padding: 110px 8vw 90px 5vw; display: flex; flex-direction: column; justify-content: center; }
.about-copy h2 { font-size: clamp(43px,4.5vw,72px); max-width: 680px; }
.about-copy > p:not(.eyebrow) { max-width: 600px; color: #aab6bf; line-height: 1.8; font-size: 17px; margin: 30px 0 42px; }
.process-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.process-row span { flex: 1; min-width: 120px; padding: 22px 10px 22px 0; color: #d7dee3; font-size: 13px; }
.process-row b { display: block; color: var(--amber); font-size: 10px; margin-bottom: 6px; }
.about-copy .primary-cta { align-self: flex-start; }

.contact { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: .82fr 1.18fr; min-height: 650px; }
.contact-panel { padding: 110px 7vw; }
.contact-panel h2 { font-size: clamp(44px,4.3vw,72px); margin-bottom: 54px; }
.contact-phone { display: flex; align-items: center; gap: 21px; border-top: 1px solid #c8cecf; padding: 20px 0; max-width: 560px; font-weight: 700; }
.contact-phone:last-child { border-bottom: 1px solid #c8cecf; }
.contact-phone svg { color: var(--amber); }
.contact-phone span { display: flex; flex-direction: column; gap: 5px; }
.contact-phone small { font-size: 10px; color: #7a858c; text-transform: uppercase; letter-spacing: .15em; }
.map-wrap { min-height: 600px; filter: grayscale(.75) contrast(1.05); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 600px; border: 0; display: block; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 5vw; background: #04111c; color: #7f8d98; font-size: 11px; }
footer > a:last-child { color: #aab5bd; }
.floating-whatsapp { position: fixed; z-index: 30; right: 28px; bottom: 27px; display: flex; align-items: center; gap: 10px; background: #21bd66; color: white; padding: 14px 18px; border-radius: 2px; box-shadow: 0 10px 35px rgba(0,0,0,.25); font-size: 13px; font-weight: 800; }
.floating-whatsapp svg { width: 21px; }

.admin-shell { min-height: 100svh; background: #eef1f3; color: #0a1824; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100svh; background: #061521; color: #fff; padding: 30px 24px; display: flex; flex-direction: column; }
.admin-logo { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .12em; }
.admin-brand-logo { width: 202px; height: 59px; }
.admin-logo svg { color: var(--amber); }
.admin-logo b { color: var(--amber); }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 7px; margin-top: 60px; }
.admin-sidebar nav a { padding: 13px 15px; color: #8fa0ad; font-size: 13px; border-left: 2px solid transparent; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.05); border-left-color: var(--amber); }
.admin-side-actions { margin-top: auto; display: grid; gap: 11px; }
.admin-side-actions a, .admin-side-actions button { display: flex; align-items: center; gap: 9px; padding: 10px 0; color: #95a4af; background: transparent; border: 0; font-size: 12px; cursor: pointer; }
.admin-side-actions svg { width: 16px; }
.admin-main { padding: 45px clamp(24px,5vw,80px) 100px; min-width: 0; }
.admin-main > header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 32px; }
.admin-main > header p { margin: 0 0 7px; font-size: 10px; letter-spacing: .18em; color: #697882; }
.admin-main > header h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.admin-primary { background: var(--amber) !important; color: #0a1824 !important; border: 0 !important; border-radius: 2px !important; font-weight: 800 !important; height: 44px !important; padding: 0 19px !important; }
.admin-section { background: #fff; padding: clamp(22px,3vw,42px); margin-top: 20px; border: 1px solid #dce1e4; }
.admin-section-title { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #e2e6e8; }
.admin-section-title > span { color: var(--amber); font-size: 12px; font-weight: 800; }
.admin-section-title h2 { margin: 0 0 6px; font-size: 23px; }
.admin-section-title p { margin: 0; color: #6c7982; font-size: 13px; }
.admin-fields { display: grid; gap: 20px; margin-top: 20px; }
.admin-fields.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 11px; letter-spacing: .05em; color: #43515b; font-weight: 800; }
.field input, .field textarea { border-radius: 2px; background: #f8f9fa; border-color: #d9dfe2; color: #0a1824; }
.field textarea { resize: vertical; min-height: 98px; }
.admin-service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-service-list article { border: 1px solid #e0e4e6; padding: 20px; display: grid; gap: 15px; }
.admin-service-head { display: flex; align-items: center; justify-content: space-between; color: var(--amber); }
.admin-service-head button[data-state="checked"] { background: var(--amber); }
.admin-loading { min-height: 100svh; display: grid; place-items: center; background: #061521; color: #aab6be; }
.login-shell { grid-template-columns: 1fr; place-items: center; background: radial-gradient(circle at 70% 30%,#17364d,#061521 65%); padding: 24px; }
.login-card { width: min(430px,100%); background: #fff; color: #0a1824; padding: 42px; display: grid; gap: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.38); }
.login-card h1 { margin: 12px 0 -12px; font-size: 31px; }
.login-card > p { margin: 0 0 8px; color: #68757e; font-size: 14px; }
.login-card > div:not(.admin-logo) { display: grid; gap: 8px; }
.login-card .admin-logo { background: #061521; padding: 13px 17px; margin: -12px -12px 3px; }
.login-card label { font-size: 11px; font-weight: 800; }
.login-card input { background: #f6f8f9; border-radius: 2px; color: #0a1824; height: 43px; }
.login-card > a { display: flex; align-items: center; justify-content: center; gap: 7px; color: #63717b; font-size: 12px; }
.login-card > a svg { width: 15px; }
.admin-message { color: #1f7a4d !important; font-size: 13px !important; min-height: 18px; }

@keyframes heroDrift { from { transform: scale(1.03) translate3d(-.5%,0,0); } to { transform: scale(1.1) translate3d(1.5%,-1%,0); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes spin { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 1000px) {
  .menu-toggle { display: block; z-index: 3; }
  .main-nav { position: fixed; inset: 0; background: rgba(4,17,28,.98); flex-direction: column; justify-content: center; transform: translateX(100%); transition: transform .3s; font-size: 19px; }
  .main-nav.is-open { transform: translateX(0); }
  .nav-phone { border: 0; padding: 18px 0 0; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about-visual { min-height: 480px; }
  .map-wrap, .map-wrap iframe { min-height: 480px; }
}
@media (max-width: 700px) {
  .site-header { height: 78px; padding: 0 22px; }
  .brand-logo { width: 192px; height: 56px; }
  .hero { padding: 135px 23px 95px; align-items: center; }
  .hero::before { background: linear-gradient(90deg,rgba(3,13,24,.97),rgba(3,13,24,.75)), linear-gradient(0deg,rgba(3,13,24,.7),transparent); }
  .hero-image { background-position: 62% center; }
  .hero h1 { font-size: clamp(46px,14vw,68px); }
  .hero-description { font-size: 16px; }
  .hero-index { display: none; }
  .scroll-cue { left: 23px; }
  .services, .contact-panel { padding: 90px 23px; }
  .section-heading { display: block; margin-bottom: 50px; }
  .section-heading > p { margin-top: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .about-copy { padding: 90px 23px; }
  .about-visual { min-height: 360px; }
  footer { flex-direction: column; align-items: flex-start; padding: 38px 23px 85px; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { border-radius: 50%; padding: 15px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; padding: 20px; }
  .admin-sidebar nav { display: none; }
  .admin-side-actions { margin: 22px 0 0; grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 26px 15px 70px; }
  .admin-main > header { align-items: flex-start; flex-direction: column; }
  .admin-fields.two, .admin-service-list { grid-template-columns: 1fr; }
  .login-card { padding: 30px 24px; }
}
