/* ============================================================
   Axis Law Offices — Global Styles
   Edit colour tokens and font sizes here to restyle the whole site.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --navy:        #0E1F3D;
  --navy-mid:    #1a2f54;
  --navy-light:  #2B3A5C;
  --gold:        #B08D57;
  --gold-light:  #c9a96e;
  --cream:       #F5F0E8;
  --white:       #FFFFFF;
  --text-dark:   #1a1a2e;
  --text-mid:    #4a4a68;
  --text-light:  #7a7a90;
  --border:      #e0d8cc;

  --font-heading: 'Playfair Display', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Lato', 'Segoe UI', Arial, sans-serif;

  --radius:      4px;
  --transition:  0.25s ease;
  --shadow:      0 4px 24px rgba(14,31,61,0.10);
  --shadow-lg:   0 8px 40px rgba(14,31,61,0.16);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title--white { color: var(--white); }

.gold-rule {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 28px;
}
.gold-rule--center { margin: 0 auto 28px; }

.lead {
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 680px;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Cream Background Sections ---------- */
.bg-cream  { background: var(--cream); }
.bg-navy   { background: var(--navy); }
.bg-white  { background: var(--white); }

/* ---------- Text on dark backgrounds ---------- */
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 { color: var(--white); }
.bg-navy p  { color: rgba(255,255,255,0.78); }
.bg-navy .section-title { color: var(--white); }

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---------- Text helpers ---------- */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.text-navy   { color: var(--navy); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Card base ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-body { padding: 28px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B08D57' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Scroll-to-top ---------- */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-3px); background: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
