/*
 Theme: Blocksy Child – TradeSense Legal  v2.3
 Template: blocksy
*/

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy: #1D3B5E;
  --navy-dark: #14304E;
  --orange: #C46A34;
  --orange-light: #F7E9DF;
  --white: #FFF;

  --radius: 8px;
  --sp-lg: 3rem;
  --sp-md: 1.6rem;
  --sp-sm: .8rem;

  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Georgia','Times New Roman', serif;
}

/* ─── RESET & BASE ─────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body { font-family: var(--font); color:#333; background:var(--white); line-height:1.65; }
h1,h2,h3 { margin:0 0 var(--sp-sm); font-weight:700; color:var(--navy); }
h1 { font-family: var(--serif); font-size:clamp(2.4rem,5vw,3.2rem); line-height:1.15; text-shadow:0 2px 6px rgba(0,0,0,.45); }
h2 { font-size:clamp(1.7rem,4vw,2.25rem); }
p { margin:0 0 var(--sp-md); }
a { color:var(--orange); text-decoration:none; transition:.25s; }
a:hover { color:var(--navy); }

/* ─── FULL-BLEED HELPERS ───────────────────────────────── */
.full-bleed {
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 0; overflow: hidden;
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position:relative;
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:url('img/hero.jpg') center/cover no-repeat;
  clip-path:polygon(0 0,100% 0,100% 81%,0 100%);
  min-height:60vh; padding-bottom:var(--sp-lg);
}
@media(min-width:769px){
  .hero { min-height:80vh; background-attachment:fixed; }
}
@media(max-width:768px){
  .hero { clip-path:none; padding:var(--sp-lg) 0; }
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(10,28,54,.60) 0%,rgba(10,28,54,.30) 100%);
  backdrop-filter:blur(1.2px);
}
.hero-inner {
  position:relative; z-index:1;
  max-width:820px; width:100%; padding:0 1rem; text-align:center;
}
.hero-title-bar,
.hero-inner h1,
.hero-inner .hero-sub { color:var(--white); }
.hero-title-bar {
  display:inline-block; margin-bottom:var(--sp-sm);
  font-size:.8rem; letter-spacing:.5px; text-transform:uppercase; opacity:.95;
  position:relative;
}
.hero-title-bar::before {
  content:""; position:absolute; top:-10px; left:50%; transform:translateX(-50%);
  width:60px; height:3px; background:var(--orange);
}
.hero-sub {
  font-size:1.15rem; margin-bottom:var(--sp-md);
  opacity:.98; text-shadow:0 1px 4px rgba(0,0,0,.4);
}
.btn {
  display:inline-block; padding:.9rem 2.4rem; border-radius:var(--radius);
  background:var(--orange); color:var(--white); font-weight:600;
  transition:.28s;
}
.btn:hover {
  background:var(--navy-dark); color:var(--white); transform:translateY(-3px);
}
/* ─── APPROACH HIGHLIGHT  (NEW) ─────────────────────────── */
.approach-highlight {
  background: var(--orange-light);
}
.approach-wrap{
  display:grid; grid-template-columns: 1fr 1fr; align-items:stretch;
  min-height:420px;
}
.approach-image{
  background-size:cover; background-position:center; min-height:260px;
}
.approach-text{
  display:flex; flex-direction:column; justify-content:center;
  padding: var(--sp-lg) var(--sp-md);
}
.approach-text h2{color:var(--navy); margin-bottom:var(--sp-sm);}
.approach-text p{color:#333; margin-bottom:var(--sp-md); line-height:1.6;}
.btn-outline{
  background:var(--orange); color:var(--white);
}
.btn-outline:hover{
  background:var(--navy-dark); color:var(--white);
}

/*  stack on mobile  */
@media(max-width:768px){
  .approach-wrap{grid-template-columns:1fr;}
  .approach-image{order:-1;}      /* image first on mobile */
}

/* ─── SERVICE CARDS ───────────────────────────────────── */
.card-band {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  margin-top:-3.5rem;
}
.card {
  background:var(--orange-light);
  color:var(--navy-dark);
  padding:var(--sp-lg) var(--sp-md) var(--sp-md);
  position:relative; min-height:230px;
  transition:transform .25s, box-shadow .25s, background .25s, color .25s;
}
.card:not(:last-child) { border-right:1px solid #E5E1DE; }
.card h3 {
  margin:var(--sp-sm) 0; font-size:1.15rem;
  display:flex; align-items:center; gap:.5rem; color:var(--navy);
}
.card h3 i { font-size:1.35rem; color:var(--navy); }
.card p { font-size:.95rem; opacity:.92; }
.card::after {
  content:"➞"; position:absolute; right:var(--sp-sm); bottom:var(--sp-sm);
  color:var(--orange); font-size:1.15rem; transition:transform .25s, color .25s;
}
.card:hover {
  background:var(--orange); color:#fff;
  transform:translateY(-6px); box-shadow:0 8px 18px rgba(0,0,0,.16);
}
.card:hover h3, .card:hover p, .card:hover h3 i { color:#fff; }
.card:hover::after { transform:translateX(4px); color:#fff; }

/* ─── INTRO ───────────────────────────────────────────── */
.intro {
  padding:var(--sp-lg) 1rem; background:var(--white);
}
.intro .wrap {
  max-width:720px; margin:0 auto; text-align:center;
}
.intro p { font-size:1.05rem; color:#444; }

/* ─── APPROACH HERO ───────────────────────────────────────── */
.approach-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0,100% 0,100% 85%,0 100%);
}
.approach-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(10,28,54,0.6) 0%,rgba(10,28,54,0.3) 100%);
}
.approach-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
  text-align: center;
  color: #fff;
}
.approach-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem,5vw,3.2rem);
  margin-bottom: var(--sp-md);
}
.approach-hero .hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ─── FEATURES GRID ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: var(--sp-lg);
  max-width: 1080px;
  margin: var(--sp-lg) auto;
  padding: 0 1rem;
}
.feature-card {
  background: var(--orange-light);
  border-radius: var(--radius);
  padding: var(--sp-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card i {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: var(--sp-sm);
}
.feature-card h3 {
  margin-bottom: var(--sp-sm);
  color: var(--navy);
}
.feature-card p {
  color: #333;
  line-height: 1.6;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* ─── FULL-WIDTH FOOTER CTA ───────────────────────────────── */
.cta-fullwidth {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #1D3B5E;     /* navy */
  color: #FFF;
  padding: 4rem 1rem;
  box-sizing: border-box;
  text-align: center;
}
.cta-fullwidth .cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: #FFF;
  padding: 2.5rem 2rem;
  border-left: 6px solid #C46A34;  /* orange accent */
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.cta-fullwidth .cta-card h2 {
  font-family: 'Georgia','Times New Roman',serif;
  font-size: clamp(2rem,4vw,2.5rem);
  color: #1D3B5E;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-fullwidth .cta-card p {
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.cta-fullwidth .cta-card .btn {
  background: #1D3B5E;
  color: #FFF;
  padding: .9rem 2.4rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.cta-fullwidth .cta-card .btn:hover {
  background: #C46A34;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ─── MOBILE ADJUSTMENTS ───────────────────────────────── */
@media (max-width: 768px) {
  .approach-highlight.full-bleed,
  .cta-fullwidth {
    left: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  .approach-highlight.full-bleed .approach-wrap {
    grid-template-columns: 1fr;
  }
}

/* ─── FULL-WIDTH FOOTER CTA – FINAL TIGHTENED VERSION ─────────────────────────────────── */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  width: 100%;
  padding: 1rem 1rem 2rem; /* less top, ample bottom */
}

.footer-cta-inner {
  max-width: 1080px;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem; /* reduce gap between elements */
}

.footer-cta-inner p {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
}

.footer-cta-inner .footer-btn {
  align-self: center;
  padding: 0.8rem 2rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .3s, transform .2s, box-shadow .3s;
  text-decoration: none;
}

.footer-cta-inner .footer-btn:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .footer-cta {
    padding: 0.8rem 1rem 1.5rem;
  }
  .footer-cta-inner {
    gap: 0.75rem;
  }
  .footer-cta-inner p {
    font-size: 1rem;
  }
  .footer-cta-inner .footer-btn {
    width: 100%;
    padding: 0.75rem 0;
  }
}

/* ─── SERVICES: Alternating Panels ────────────────────────── */
.service-section {
  margin: var(--sp-lg) 0;
}
.service-section .service-wrap {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.service-section.odd .service-wrap {
  flex-direction: row;
}
.service-section.even .service-wrap {
  flex-direction: row-reverse;
}

/* image half */
.service-section .service-image {
  flex: 1;
}
.service-section .service-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* text half */
.service-section .service-text {
  flex: 1;
  padding: var(--sp-lg) var(--sp-md);
  background: var(--orange-light);
  transition: background .3s;
}

/* even panels have a crisp white text-back */
.service-section.even .service-text {
  background: var(--white);
}

/* RESPONSIVE: stack on mobile */
@media (max-width: 768px) {
  .service-section .service-wrap {
    flex-direction: column !important;
  }
  .service-section .service-text {
    /* always orange-light on mobile for brand consistency */
    background: var(--orange-light);
  }
}
/* ─── SERVICES: Enhanced Styling ────────────────────────── */

/* Add a subtle divider line between sections */
.service-section + .service-section {
  position: relative;
  padding-top: var(--sp-lg);
}
.service-section + .service-section::before {
  content: "";
  position: absolute;
  top: calc(var(--sp-lg) / 2);
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}

/* Give images a soft border-radius & shadow */
.service-image img {
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.service-image img:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Make text panels a little more card-like */
.service-text {
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.service-section.even .service-text {
  /* if you want a different style on even panels, tweak here */
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Headline accent */
.service-text h2 {
  position: relative;
  padding-bottom: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.service-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
}

/* ─── EVEN PANELS: NAVY BACKGROUND ───────────────────────────────────── */
.service-section.even .service-text {
  background: var(--navy) !important;
  color: var(--white) !important;
}

/* make sure headings & copy on navy are light */
.service-section.even .service-text h2,
.service-section.even .service-text p {
  color: var(--white) !important;
}

/* optionally soften the paragraph so it’s not blinding white text */
.service-section.even .service-text p {
  opacity: .9;
}


/* Tighter copy width for easier reading */
.service-text p {
  max-width: 520px;
  margin-bottom: 0;
  color: #333;
  line-height: 1.7;
}

/* only hide/reveal our custom .service-section blocks */
/*.service-section[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.service-section[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}*/


/* Increase gutter between image/text on desktop */
@media (min-width: 769px) {
  .service-wrap {
    gap: var(--sp-lg);
  }
}

/* Stack & remove shadows on mobile for performance */
@media (max-width: 768px) {
  .service-text,
  .service-image img {
    box-shadow: none;
  }
}

/* center the inner CTA box in the full‐width strip */
.cta-fullwidth .footer-cta-inner {
  margin: 0 auto;
  text-align: center;    /* make sure text & button are centered */
}

/* little “note” above Contact CTA */
.footer-cta-inner .cta-note {
  font-size: 1rem;
  color: #f7f7f7;
  margin-bottom: .5rem;
  opacity: .85;
  font-style: italic;
}

/* tighten up spacing */
.footer-cta-inner p {
  margin: .25rem 0;
}

/* ─── CONTACT HERO ───────────────────────────────────── */
.contact-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0,100% 0,100% 85%,0 100%);
  margin-bottom: var(--sp-lg);
}
.contact-hero .hero-inner {
  position: relative; z-index:1;
  text-align: center; color: var(--white);
  padding: 0 1rem;
}
.contact-hero h1 {
  font-size: clamp(2.4rem,5vw,3.2rem);
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.contact-hero .hero-sub {
  font-size: 1.15rem; opacity: .9;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ─── FORM LAYOUT ───────────────────────────────────── */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem var(--sp-lg);
}
.contact-form {
  background: var(--white);
}

/* remove second column entirely */
@media(min-width:769px){
  .contact-wrap {
    display: block;
  }
}

/* --- CARD ICONS --------------------------------------------------- */
.card-icon{
  display:block;
  font-size:2.4rem;           /* big and clear */
  color:var(--orange);
  margin-bottom:var(--sp-sm);
  line-height:1;
}
.card h3{
  margin-top:0;               /* already has bottom margin */
  font-size:1.2rem;
  color:var(--navy);
}

.eva-bio {
  background: #f9f9f9;
  padding: 4rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.bio-header h2 {
  margin-bottom: 0.2em;
  font-size: 2rem;
  color: #222;
}

.bio-title {
  font-weight: 600;
  color: #444;
}

.bio-tagline {
  font-style: italic;
  color: #777;
  margin-top: 0.5rem;
}

.bio-body p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: #333;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}

.cta-fullwidth {
  padding: 3rem 0; /* reduce from 6rem or more */
}

.footer-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-cta-inner h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.footer-cta-inner p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.footer-btn {
  margin-top: 0; /* ensure no extra space above button */
}
