/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =========================================
   CTNM V3.2 — Webflow-style Design System
   Base classes + combo classes + utilities
   ========================================= */

/* ---------- Tokens (CSS variables) ---------- */
:root{
  /* Colors */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --dark: #1E293B;

  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Layout */
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 12px;

  /* Shadows */
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.06);

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 72px;
  --s-8: 96px;

  /* Type scale */
  --h1: clamp(32px, 2.8vw, 46px);
  --h2: clamp(28px, 3vw, 40px);
  --h3: clamp(20px, 2vw, 28px);
  --body: 17px;
  --small: 14px;
}

/* ---------- Base (global) ---------- */
body{
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

p{ color: var(--muted); }

a{ color: var(--blue); text-decoration: none; }
a:hover{ color: var(--blue-hover); }

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

/* ---------- Webflow-style Layout ---------- */
.section{
  padding: var(--s-8) 0;
}
.section.is-soft{
  background: #EEF2F7;
}
.section.is-dark{
  background: var(--dark);
  color: #fff;
}
.section.is-tight{
  padding: var(--s-7) 0;
}
.section.is-hero{
  padding: calc(var(--s-8) + var(--s-2)) 0;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Section headings */
.section-head{
  max-width: 720px;
  margin: 0 auto var(--s-6);
  text-align: center;
}
.section-head.is-left{
  text-align: left;
  margin-left: 0;
}
.section-kicker{
  font-size: var(--small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.section-title{
  font-family: var(--font-serif);
  font-size: var(--h2);
  line-height: 1.15;
  margin: 0 0 var(--s-2);
}
.section-subtitle{
  margin: 0;
  color: var(--muted);
}

/* ---------- Typography helpers (t-*) ---------- */

.t-h1{
  font-family: var(--font-serif);
  font-size: var(--h1);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
}
.t-h2{
  font-family: var(--font-serif);
  font-size: var(--h2);
  line-height: 1.15;
}
.t-h3{
  font-family: var(--font-serif);
  font-size: var(--h3);
  line-height: 1.2;
}
.t-muted{ color: var(--muted); }
.t-small{ font-size: var(--small); }
.t-center{ text-align: center; }
.t-left{ text-align: left; }

/* ---------- Utilities (u-*) ---------- */
.u-center{ display:flex; align-items:center; justify-content:center; }
.u-between{ display:flex; align-items:center; justify-content:space-between; }
.u-stack{ display:flex; flex-direction:column; }
.u-gap-2{ gap: var(--s-2); }
.u-gap-3{ gap: var(--s-3); }
.u-gap-4{ gap: var(--s-4); }
.u-gap-5{ gap: var(--s-5); }
.u-mt-3{ margin-top: var(--s-3); }
.u-mt-4{ margin-top: var(--s-4); }
.u-mt-5{ margin-top: var(--s-5); }
.u-mb-3{ margin-bottom: var(--s-3); }
.u-mb-4{ margin-bottom: var(--s-4); }
.u-mb-5{ margin-bottom: var(--s-5); }
.u-max-w-sm{ max-width: 520px; }
.u-max-w-md{ max-width: 720px; }
.u-max-w-lg{ max-width: 920px; }
.u-hide-mobile{ display:block; }

@media (max-width: 767px){
  .u-hide-mobile{ display:none; }
  .t-h1{
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
}

/* ---------- Grids (g-*) ---------- */
.g-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}
.g-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.g-4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 991px){
  .g-3, .g-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  .g-2, .g-3, .g-4{ grid-template-columns: 1fr; }
  .section{ padding: var(--s-7) 0; }
}

/* ---------- Cards (component + combo classes) ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: none;
}
.card.is-soft{
  box-shadow: var(--shadow-soft);
}
.card.is-hover:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  transition: 180ms ease;
}
.card.is-center{ text-align:center; }
.card.is-tight{ padding: var(--s-4); }

/* Media card (image + content) */
.card-media{
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
    box-shadow:
    0 40px 100px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(15, 23, 42, 0.08);
  height: 100%;
  transform: translateY(6px);
}

.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
/* HERO media — deeper shadow */
.card-media.is-hero-media{
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.18),
    0 10px 30px rgba(15, 23, 42, 0.10);
	border-color: rgba(226,232,240,0.9);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 180ms ease;
  user-select: none;
}
.btn.is-primary{
  background: var(--blue);
  color: #fff;
}
.btn.is-primary:hover{
  background: var(--blue-hover);
}
.btn.is-secondary{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.is-secondary:hover{
  border-color: #CBD5E1;
  background: #fff;
}
/* HERO secondary button — more contrast */
.btn.is-secondary.is-hero-secondary{
  background: rgba(255,255,255,0.9);
  border-color: rgba(148,163,184,0.45);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.btn.is-secondary.is-hero-secondary:hover{
  background: #fff;
  border-color: rgba(148,163,184,0.70);
  transform: translateY(-1px);
}

.btn.is-ghost{
  background: transparent;
  color: var(--blue);
  border-color: transparent;
}
.btn.is-lg{
  padding: 14px 22px;
  border-radius: 14px;
}

/* ---------- Badges ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  width: fit-content;
  margin-bottom: var(--s-3);
}
.badge.is-hero{
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--blue);
}
.badge.is-popular{
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--blue);
}

/* ---------- Pricing ---------- */
.pricing-card{ position: relative; }
.pricing-card.is-featured{
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
}
.pricing-badge{
  position:absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.price{
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.price .per{ font-size: 14px; font-weight: 600; color: var(--muted); }
.list{
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin: 10px 0;
}
.list li::before{
  content: "✓";
  color: var(--blue);
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

/* ---------- Dark section tweaks ---------- */
.section.is-dark .section-title,
.section.is-dark .t-h1,
.section.is-dark .t-h2,
.section.is-dark .t-h3{ color: #fff; }

.section.is-dark p,
.section.is-dark .t-muted{ color: rgba(255,255,255,0.72); }

.section.is-dark .btn.is-primary{
  background: #fff;
  color: var(--dark);
}
.section.is-dark .btn.is-primary:hover{
  background: #E5E7EB;
}

/* ---------- Forms (basic) ---------- */
.form{
  display:flex;
  flex-direction:column;
  gap: var(--s-3);
}
.label{ font-size: 13px; font-weight: 600; color: var(--text); }
.input, .textarea, select{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--text);
  outline: none;
}
.input:focus, .textarea:focus, select:focus{
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.section.is-hero{
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
  background: radial-gradient(1200px 600px at 80% 20%,rgba(37, 99, 235, 0.06), transparent 60%),
  linear-gradient(180deg, #F8FAFC 0%, #F3F6FB 100%);
}

.section.is-hero .g-2{
  align-items: stretch;
}

.section.is-hero .card-media{
  min-height: 440px;
  display: flex;
}
.section.is-hero .card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media.is-hero-media img{
  filter: contrast(1.05) saturate(1.05);
}

@media (max-width: 991px){
  .section.is-hero .card-media{ min-height: 320px; }
}

