/* =========================================================
   Core Concrete Group - Main Stylesheet
   File: /css/main.css
   Purpose: Reusable design system for location, service, guide and money pages
========================================================= */

/* -----------------------------
   1. Design Tokens
----------------------------- */
:root {
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-surface-soft: #edf1f6;
  --color-surface-light: #f7f9fc;
  --color-text: #18212c;
  --color-muted: #5d6775;
  --color-heading: #0f172a;
  --color-border: #dbe3ec;
  --color-primary: #273576;
  --color-primary-hover: #1c274f;
  --color-accent: #76272d;
  --color-accent-hover: #5a1d22;
  --color-white: #ffffff;

  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.2);
  --shadow-accent: 0 14px 30px rgba(118, 39, 45, 0.28);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --container-narrow: 920px;
  --container-text: 760px;

  --space-section: 70px;

  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Bebas Neue", Impact, sans-serif;
}

/* -----------------------------
   2. Reset + Base
----------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
summary:focus {
  outline: 3px solid rgba(39, 53, 118, 0.2);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  color: var(--color-heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 8vw, 6.4rem);
  letter-spacing: 0.025em;
  line-height: 0.93;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 16px;
}

/* -----------------------------
   3. Layout Utilities
----------------------------- */
.wrap {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(calc(100% - 32px), var(--container-narrow));
  margin: 0 auto;
}

.wrap-text {
  width: min(calc(100% - 32px), var(--container-text));
  margin: 0 auto;
}

.section {
  padding: var(--space-section) 0;
}

.section-light {
  background: var(--color-surface-light);
}

.page-flow {
  padding: 46px 0 110px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-surface-light) 28%,
    var(--color-bg) 100%
  );
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.center-block {
  max-width: var(--container-text);
  margin: 0 auto;
  text-align: center;
}

.center-block p {
  margin-left: auto;
  margin-right: auto;
}

.text-muted {
  color: var(--color-muted) !important;
}

.max-text {
  max-width: 66ch;
}

/* -----------------------------
   4. Header + Navigation
----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 227, 236, 0.92);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  transition: all 0.25s ease;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 800;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.1;
  transition: font-size 0.25s ease;
}

.brand-sub {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.2;
  transition: font-size 0.25s ease;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.top-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .header-inner {
  min-height: 64px;
}

.site-header.scrolled .brand-name {
  font-size: 1rem;
}

.site-header.scrolled .brand-sub {
  font-size: 0.8rem;
}

.site-header.scrolled .top-nav a:not(.phone-chip) {
  display: none;
}

.site-header.scrolled .top-nav {
  gap: 0;
}

/* -----------------------------
   5. Buttons + CTAs
----------------------------- */
.btn,
.quote-chip,
.phone-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn {
  min-height: 54px;
  padding: 0 22px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary-light {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.quote-chip,
.phone-chip {
  min-height: 46px;
  padding: 0 16px;
}

.quote-chip {
  background: var(--color-accent);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-sm);
}

.quote-chip:hover {
  background: var(--color-accent-hover);
}

.phone-chip {
  background: var(--color-primary);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-sm);
}

.phone-chip:hover {
  background: var(--color-primary-hover);
}

.site-header.scrolled .quote-chip,
.site-header.scrolled .phone-chip {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

/* -----------------------------
   6. Hero System
----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 12, 22, 0.88) 0%,
    rgba(8, 12, 22, 0.72) 42%,
    rgba(8, 12, 22, 0.28) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 44%;
  height: 180px;
  background: linear-gradient(135deg, rgba(118, 39, 45, 0.95), rgba(39, 53, 118, 0.9));
  transform: skewY(-7deg);
  opacity: 0.92;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: 640px;
  padding: 78px 0 82px;
}

.hero h1,
.hero h2,
.hero h3 {
  color: var(--color-white);
}

.hero h1 {
  margin-bottom: 18px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
}

.hero-sub {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  font-weight: 600;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero-copy p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 18px;
}

.breadcrumbs {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
  max-width: 48ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.trust-list li::before {
  content: "✓";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: rgba(118, 39, 45, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* -----------------------------
   7. Visual Content Components
----------------------------- */
.image-frame img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  min-height: 360px;
}

.visual-grid,
.simple-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 38px;
}

.visual-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.visual-item p,
.text-col p {
  color: var(--color-muted);
}

.text-col {
  padding-left: 18px;
  border-left: 3px solid rgba(39, 53, 118, 0.16);
}

.highlight-panel {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: var(--color-white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.highlight-panel h3,
.highlight-panel p,
.highlight-panel strong {
  color: var(--color-white);
}

.highlight-panel p {
  max-width: none;
}

.stack-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.stack-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.stack-item span {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  font-weight: 800;
}

/* -----------------------------
   8. FAQ + Final CTA
----------------------------- */
.faq-wrap {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

details.faq-item {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 800;
  color: var(--color-heading);
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  padding-bottom: 8px;
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--color-muted);
}

.final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1d2945 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 34px;
}

.final-cta::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.final-cta h2,
.final-cta p {
  color: var(--color-white);
  position: relative;
  z-index: 1;
  max-width: 44ch;
}

.final-cta .actions-row {
  position: relative;
  z-index: 1;
}

/* -----------------------------
   9. Footer + Floating Call Button
----------------------------- */
.footer {
  padding: 30px 0 100px;
  background: #eef2f7;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 42px rgba(118, 39, 45, 0.34);
}

.floating-call:hover {
  color: var(--color-white);
  background: var(--color-accent-hover);
}

/* -----------------------------
   10. Responsive Rules
----------------------------- */
@media (max-width: 1100px) {
  .split,
  .final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .visual-grid,
  .simple-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header.scrolled .header-inner {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .top-nav {
    gap: 12px;
  }

  .hero-inner {
    min-height: unset;
    padding: 48px 0 54px;
  }

  .final-cta {
    padding: 24px;
  }

  .section {
    padding: 48px 0;
  }

  .floating-call {
    right: 14px;
    left: 14px;
    justify-content: center;
  }

  .hero::after {
    display: none;
  }
}
