/* ============================================================
   css/style.css — ALPHED DECOR LLP
   Single responsive stylesheet (replaces desktop.css + mobile.css)
   Breakpoint: 880px
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --primary:    #0076CE;
  --primary-600:#0166b0;
  --ink:        #0b1020;
  --muted:      #606a80;
  --bg:         #f7f9fc;
  --card:       #ffffff;
  --success:    #10b981;
  --warning:    #f59e0b;
  --radius:     18px;
  --shadow:     0 10px 30px rgba(11,16,32,.08);
  --ring:       0 0 0 4px rgba(0,118,206,.15);
  --max:        1100px;
  --gap:        16px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:      var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a   { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
  padding: 0 18px;
}
.row   { display: flex; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.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;
}

/* ── Header / Nav ─────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.8) blur(10px);
  background: color-mix(in srgb, #fff 85%, transparent);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: .4px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 15px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,118,206,.38);
}
nav ul {
  display: flex; gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
nav a {
  padding: 10px 12px; border-radius: 12px;
  font-weight: 600; color: #223;
}
nav a:hover  { background: #eef6ff; }
nav a.active { background: #eef6ff; color: var(--primary); }

/* ── Buttons / CTAs ───────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 14px;
  font-weight: 700; color: #fff;
  background: var(--primary); box-shadow: var(--shadow); border: 0;
  cursor: pointer;
}
.cta:hover { background: var(--primary-600); }
.ghost {
  background: transparent; color: var(--primary);
  border: 1px solid #d6eaff;
}
.ghost:hover { background: #eef6ff; }

/* Hamburger — hidden on desktop */
.menu-btn {
  display: none;
  border: 1px solid #e5e7eb; padding: 8px 10px;
  border-radius: 12px; background: #fff;
  cursor: pointer; font-size: 1.1rem;
}

/* Desktop: show nav links, show "Request a Quote", hide "Admin" & hamburger */
header .row .request-quote-btn { display: inline-flex; }
header .row .login-btn          { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 64px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px; align-items: center;
}
.badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 999px;
  background: #eef6ff; color: #0b3a63;
  font-weight: 700; font-size: .9rem;
}
h1 {
  font-size: clamp(1.8rem, 3.6vw + .6rem, 3rem);
  line-height: 1.1; margin: 14px 0;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.hero-card {
  background: var(--card); padding: 22px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust {
  display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap; opacity: .8;
}
.trust img { height: 32px; filter: grayscale(1); opacity: .8; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.section-head h2 {
  margin: 0 0 8px; font-size: clamp(1.4rem, 2.2vw + .6rem, 2rem);
  font-weight: 700;
}
.section-head .muted { color: #6b7280; margin: 0; }

/* ── Cards ────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card); padding: 20px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,16,32,.13);
}
.card .icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: #eef6ff; margin-bottom: 10px;
}
.card h3 { margin: .2rem 0 .6rem; }
.card p  { color: var(--muted); }
.chip {
  display: inline-flex; padding: 6px 10px;
  background: #f4f7fb; border-radius: 999px;
  font-size: .85rem; color: #445;
}

/* ── Portfolio Grid ───────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 12px;
}
.tile {
  position: relative; margin: 0; border-radius: 12px;
  overflow: hidden; background: #f8fafc;
  box-shadow: 0 6px 18px rgba(12,20,30,.04);
}
.tile img {
  width: 100%; height: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  transition: transform 300ms ease;
}
.tile:hover img    { transform: scale(1.03); }
.tile-caption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 10px; background: rgba(0,0,0,.55);
  color: #fff; font-weight: 600; border-radius: 6px;
  font-size: 14px; backdrop-filter: blur(4px);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testi { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote {
  background: #0b1020; color: #e9f2ff;
  padding: 22px; border-radius: var(--radius); position: relative;
}
.quote p     { margin: 0; }
.quote small { opacity: .8; }

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #001a33, #003a73);
  color: #eaf4ff; padding: 36px; border-radius: 22px;
  box-shadow: var(--shadow);
}
.cta-band-row { flex-direction: row; align-items: center; }

/* ── Contact Form ─────────────────────────────────────────── */
form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field input,
.field textarea,
.field select {
  padding: 12px 14px; border: 1px solid #e5eaf0;
  border-radius: 12px; outline: none;
  background: #fff; font: inherit;
}
.field input:focus,
.field textarea:focus {
  box-shadow: var(--ring); border-color: #cfe7ff;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #0b1020; color: #c9d5e9;
  padding: 40px 0 60px; margin-top: 40px;
}
.foot a     { color: #c9d5e9; }
.foot small { color: #9fb1cc; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; right: 16px; bottom: 16px;
  background: #0b1020; color: #fff;
  padding: 12px 16px; border-radius: 12px;
  transform: translateY(120%); opacity: 0;
  transition: .35s; z-index: 10000;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── FAB (desktop scroll-to-contact) ─────────────────────── */
.fab {
  position: fixed; right: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(3,22,42,.18); border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--primary);
  color: #fff; cursor: pointer; z-index: 9999;
}

/* ── Sticky Bottom Bar (mobile only — hidden on desktop) ──── */
.sticky-bar { display: none; }

/* ── Mobile Drawer (hidden on desktop) ───────────────────── */
.mobile-drawer {
  position: fixed; top: 57px; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid #eef2f7;
  display: none; z-index: 100; overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block; padding: 15px 22px;
  border-bottom: 1px solid #f1f5f9;
  color: #223; font-weight: 600; font-size: .95rem;
}

/* ── Focus Styles ─────────────────────────────────────────── */
button:focus, a:focus {
  outline-offset: 2px; box-shadow: var(--ring);
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — Mobile  (≤ 880px)
   ============================================================ */
@media (max-width: 880px) {

  /* Nav: hide links, show hamburger + Admin btn */
  nav ul                          { display: none !important; }
  .menu-btn                       { display: inline-flex !important; }
  header .row .request-quote-btn  { display: none !important; }
  /*header .row .login-btn          { display: inline-flex !important; }*/

  /* Hero */
  .hero               { padding: 24px 0 16px; }
  .hero-grid          { grid-template-columns: 1fr !important; gap: 16px; }
  .hero-card-wrap     { order: 2; }
  .hero-ctas .cta     { flex: 1; justify-content: center; }
  .hero-card-cta      { width: 100%; justify-content: center; }
  h1                  { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  .lead               { font-size: 1rem; }

  /* Grids → single column */
  .cards { grid-template-columns: 1fr !important; gap: 12px; }
  .grid  { grid-template-columns: 1fr !important; gap: 12px; }
  .testi { grid-template-columns: 1fr !important; }
  .cols  { grid-template-columns: 1fr !important; }

  /* Sections */
  section { padding: 32px 0; }

  /* CTA band */
  .cta-band       { padding: 22px 18px; border-radius: 16px; }
  .cta-band-row   { flex-direction: column !important; align-items: flex-start !important; gap: 14px; }

  /* Section head stacks */
  .section-head     { flex-direction: column; align-items: flex-start; }
  .section-head h2  { font-size: 1.4rem !important; }

  /* Form buttons fill width */
  .form-submit-btn  { flex: 1; justify-content: center; }

  /* Toast sits above sticky bar */
  .toast { bottom: 80px; }

  /* FAB sits above sticky bar */
  .fab   { bottom: 72px; }

  /* Sticky bottom bar */
  .sticky-bar {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: #fff; border-top: 1px solid rgba(0,0,0,.08);
    padding: 10px 14px; gap: 10px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.07);
  }
  .sticky-bar .cta { flex: 1; justify-content: center; font-size: .85rem; padding: 11px 0; }

  /* Body padding so sticky bar doesn't overlap content */
  body { padding-bottom: 64px; }
}
