/* ===== Skyline Skylights — stylesheet ===== */

:root {
  --sky-900: #16305c;
  --sky-800: #1d3f74;
  --sky-600: #2b5a9f;
  --sky-500: #3a6cb5;
  --sky-300: #9db8dc;
  --sky-100: #e9f0f9;
  --sun: #f4c02f;
  --sun-dark: #d9a417;
  --ink: #16222e;
  --muted: #5b6b79;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --radius: 16px;
  --shadow: 0 18px 40px -20px rgba(11, 34, 57, 0.35);
  --maxw: 1140px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 22px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; font-weight: 600; }

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sky-600);
  margin: 0 0 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--sun); color: var(--sky-900); box-shadow: 0 10px 24px -10px rgba(242,181,65,.8); }
.btn-primary:hover { background: var(--sun-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--sky-900); }
.brand-mark { flex: none; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-body); font-size: 1.12rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sky-800); }
.brand-name strong { font-weight: 800; color: var(--sky-600); }
.brand-tag { font-family: var(--font-body); font-style: italic; font-size: .72rem; color: var(--muted); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: .96rem; transition: color .15s; }
.nav a:hover { color: var(--sky-600); }
.nav-cta { background: var(--sky-600); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--sky-800); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--sky-900); }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,25,48,.92) 0%, rgba(11,25,48,.72) 42%, rgba(11,25,48,.30) 100%),
    linear-gradient(180deg, rgba(11,25,48,.35), rgba(11,25,48,.55));
}
.hero-inner { position: relative; z-index: 2; padding: 96px 22px 104px; max-width: var(--maxw); margin: 0 auto; }
.hero .eyebrow { color: var(--sky-300); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; letter-spacing: -.02em; }
.hero-sub { max-width: 560px; margin: 22px 0 32px; font-size: 1.12rem; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 40px;
  margin: 56px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; color: var(--sun); }
.stat-label { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ===== Trust strip ===== */
.trust-strip { background: var(--sky-900); color: #fff; }
.trust-inner {
  display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center;
  padding: 16px 22px; font-size: .9rem; color: var(--sky-300); font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }

/* ===== Product cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-art { height: 150px; }
.art-1 { background: linear-gradient(135deg, #2b5a9f, #9db8dc); }
.art-2 { background: linear-gradient(135deg, #1d3f74, #e9f0f9); }
.art-3 { background: linear-gradient(135deg, #16305c, #3a6cb5); }
.art-4 { background: linear-gradient(135deg, #f4c02f, #9db8dc); }
.card h3 { font-size: 1.2rem; margin: 20px 20px 8px; }
.card p { margin: 0 20px 22px; color: var(--muted); font-size: .96rem; }

/* ===== Why us ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.why-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.why-copy .section-lead { margin-bottom: 28px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feat-ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--sky-100); color: var(--sky-600);
  font-size: .9rem;
}
.feature-list h4 { font-size: 1.1rem; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ===== Process ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li {
  position: relative; padding: 34px 26px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.section-alt .steps li { background: var(--bg); }
.step-num { font-family: var(--font-head); font-size: 2.4rem; color: var(--sky-300); font-weight: 700; }
.steps h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky-100);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.shot-img {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.shot:hover .shot-img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px; font-size: .88rem; font-weight: 500; color: #fff;
  background: linear-gradient(transparent, rgba(11,25,48,.82));
}

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0; padding: 30px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.section .review { background: var(--bg-alt); box-shadow: none; }
.review p { font-family: var(--font-head); font-size: 1.12rem; font-style: italic; margin: 0 0 16px; }
.review footer { color: var(--sky-600); font-weight: 600; font-size: .92rem; }

/* ===== Contact ===== */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.contact-info { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 14px; align-items: baseline; }
.contact-info strong { min-width: 64px; color: var(--sky-900); }
.contact-info a { color: var(--sky-600); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.quote-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(46,143,214,.18);
}
.form-note { margin: 14px 0 0; font-size: .92rem; color: var(--sky-600); font-weight: 600; min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { background: var(--sky-900); color: rgba(255,255,255,.78); padding: 54px 0 34px; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; display: block; }
.footer-brand strong { color: var(--sun); }
.footer-tag { font-family: var(--font-head); font-style: italic; font-size: .9rem; color: var(--sky-300); }
.footer-brand p { margin: 10px 0 0; max-width: 420px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,.8); font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin: 0; font-size: .86rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.admin-link { color: rgba(255,255,255,.6); text-decoration: none; }
.admin-link:hover { color: var(--sun); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; transform: translateY(-120%); transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .cards, .gallery { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

/* ==========================================================================
   ADMIN PANEL (admin.html)
   ========================================================================== */
body.admin { background: var(--bg-alt); }

.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--sky-900); color: #fff;
  border-bottom: 3px solid var(--sun);
}
.admin-topbar-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.admin-topbar .brand-name { color: #fff; font-size: 1.05rem; }
.admin-topbar .brand-name strong { color: var(--sun); }
.admin-badge {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  background: rgba(255,255,255,.14); padding: 4px 9px; border-radius: 999px; font-weight: 700;
}
.admin-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.admin-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .88rem;
  padding: 9px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: .15s;
}
.admin-btn:hover { background: rgba(255,255,255,.18); }
.admin-btn.primary { background: var(--sun); color: var(--sky-900); border-color: var(--sun); }
.admin-btn.primary:hover { background: var(--sun-dark); }
.admin-btn.ghost-danger:hover { background: #7a1f1f; border-color: #7a1f1f; }

.save-flag { font-size: .82rem; color: var(--sky-300); align-self: center; }
.save-flag.dirty { color: var(--sun); }

.admin-wrap { max-width: 960px; margin: 0 auto; padding: 26px 20px 80px; }
.admin-intro {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky-600);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 26px; color: var(--muted); font-size: .95rem;
}
.admin-intro strong { color: var(--ink); }

.admin-section {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 18px; overflow: hidden;
}
.admin-section > summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 600; color: var(--sky-900);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.admin-section > summary::-webkit-details-marker { display: none; }
.admin-section > summary::after { content: "▸"; color: var(--sky-500); transition: transform .2s; }
.admin-section[open] > summary::after { transform: rotate(90deg); }
.admin-section > summary:hover { background: var(--bg-alt); }
.admin-section-body { padding: 6px 20px 22px; border-top: 1px solid var(--line); }

.a-field { margin: 16px 0; }
.a-field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--sky-900); }
.a-field input[type=text], .a-field input[type=email], .a-field input[type=tel], .a-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff;
}
.a-field textarea { resize: vertical; min-height: 74px; }
.a-field input:focus, .a-field textarea:focus {
  outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(43,90,159,.16);
}
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.a-image { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.a-image .thumb {
  width: 118px; height: 82px; border-radius: 9px; background: var(--sky-100) center/cover no-repeat;
  border: 1px solid var(--line); flex: none;
}
.a-image .a-image-ctl { display: flex; flex-direction: column; gap: 6px; }
.file-btn {
  display: inline-block; font-weight: 600; font-size: .86rem; cursor: pointer;
  background: var(--sky-600); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.file-btn:hover { background: var(--sky-800); }
.file-btn input { display: none; }
.link-btn { background: none; border: 0; color: var(--sky-600); cursor: pointer; font-weight: 600; font-size: .84rem; padding: 0; text-align: left; }
.link-btn:hover { text-decoration: underline; }

.a-list-item {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px; margin: 12px 0;
  background: var(--bg-alt); position: relative;
}
.a-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.a-item-head span { font-weight: 700; color: var(--sky-700, var(--sky-600)); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.a-item-tools { display: flex; gap: 6px; }
.a-tool { background: #fff; border: 1px solid var(--line); border-radius: 7px; width: 30px; height: 30px; cursor: pointer; font-size: .95rem; color: var(--muted); }
.a-tool:hover { border-color: var(--sky-500); color: var(--sky-600); }
.a-tool.del:hover { border-color: #c0392b; color: #c0392b; }
.add-btn {
  margin-top: 8px; background: var(--sky-100); border: 1px dashed var(--sky-500); color: var(--sky-800);
  border-radius: 9px; padding: 10px 14px; font-weight: 600; cursor: pointer; width: 100%;
}
.add-btn:hover { background: #dcebf9; }

/* Gate */
.gate { max-width: 380px; margin: 12vh auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.gate h1 { font-size: 1.5rem; margin-bottom: 6px; }
.gate p { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.gate input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 1rem; margin-bottom: 12px; }
.gate .msg { color: #c0392b; font-size: .86rem; min-height: 1.1em; margin: 4px 0 10px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--sky-900); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); opacity: 0;
  transition: .25s; pointer-events: none; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .a-grid2 { grid-template-columns: 1fr; }
  .admin-actions { width: 100%; }
}
