/* ============================================================
   Property Match Sri Lanka — Corporate site stylesheet
   Design tokens
   ============================================================ */
:root{
  --green-dark: #00532A;
  --green: #006E38;
  --green-light: #3FA76B;
  --green-tint: #EAF5EE;
  --red: #BF202F;
  --red-dark: #9C1B27;
  --red-tint: #FCEBEC;
  --charcoal: #231F20;
  --steel: #625C56;
  --steel-light: #948E87;
  --cream: #FAF9F6;
  --cream-2: #F3F1EB;
  --white: #FFFFFF;
  --line: #E7E3DA;

  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(35,31,32,0.06);
  --shadow-md: 0 12px 32px rgba(35,31,32,0.10);
  --shadow-lg: 0 24px 55px rgba(35,31,32,0.16);
  --container: 1220px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--charcoal);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.65;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.16;
  margin:0 0 .5em;
  color:var(--charcoal);
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--steel); }
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }

:focus-visible{ outline:3px solid var(--green); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--green);
  margin-bottom:14px;
  font-weight:500;
}
.eyebrow::before{
  content:"";
  width:26px;
  height:3px;
  border-radius:2px;
  background:var(--red);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius:999px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--green);
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-primary:hover{ background:var(--green-dark); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-accent{
  background:var(--red);
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-accent:hover{ background:var(--red-dark); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-outline{
  background:transparent;
  color:var(--charcoal);
  border-color:var(--line);
}
.btn-outline:hover{ border-color:var(--green); color:var(--green); transform:translateY(-2px); }
.btn-ghost-light{
  background:rgba(255,255,255,0.14);
  color:var(--white);
  border-color:rgba(255,255,255,0.55);
  backdrop-filter:blur(6px);
}
.btn-ghost-light:hover{ background:var(--white); color:var(--charcoal); }
.btn-sm{ padding:10px 20px; font-size:13.5px; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
  max-width:var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:48px; width:auto; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family:var(--font-display); font-size:16px; color:var(--green); letter-spacing:-0.01em; font-weight:800; }
.brand-text span{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--charcoal); }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links a{
  position:relative;
  padding:10px 16px;
  font-size:14.5px;
  font-weight:600;
  color:var(--charcoal);
  border-radius:8px;
  transition:color .15s ease;
}
.nav-links a::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:6px;
  height:2.5px; border-radius:2px;
  background:var(--red);
  transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--green); }
.nav-links a:hover::after, .nav-links a.active::after{ transform:scaleX(1); }

.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-cta{ display:inline-flex; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  align-items:center; justify-content:center;
  background:transparent; border:1.5px solid var(--line); border-radius:8px;
  cursor:pointer;
}
.nav-toggle span{
  display:block; width:19px; height:2px; background:var(--charcoal); position:relative;
  transition:background .2s ease;
}
.nav-toggle span::before,.nav-toggle span::after{
  content:""; position:absolute; left:0; width:19px; height:2px; background:var(--charcoal);
  transition:transform .25s ease, top .25s ease;
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }
.nav-toggle.open span{ background:transparent; }
.nav-toggle.open span::before{ top:0; transform:rotate(45deg); }
.nav-toggle.open span::after{ top:0; transform:rotate(-45deg); }

.mobile-menu{
  position:fixed; top:0; right:0; width:min(86vw,360px); height:100vh;
  transform:translateX(100%);
  visibility:hidden;
  z-index:200;
}
.mobile-overlay{
  position:fixed; inset:0; z-index:150;
  opacity:0; visibility:hidden; pointer-events:none;
}

/* ============================================================
   Hero (banner) sections
   ============================================================ */
.hero{
  position:relative;
  min-height:480px;
  display:flex; align-items:center;
  background-size:cover; background-position:center;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(250,249,246,0.97) 0%, rgba(250,249,246,0.88) 34%, rgba(250,249,246,0.18) 64%, rgba(250,249,246,0.02) 100%);
}
.hero-inner{
  position:relative; z-index:2;
  max-width:var(--container); width:100%; margin:0 auto; padding:70px 24px;
}
.hero-content{ max-width:640px; }
.hero .swoosh-rule{ margin-bottom:20px; }
.hero h1{ font-size:clamp(30px, 4.4vw, 50px); margin-bottom:18px; }
.hero p.lead{ font-size:17px; color:var(--steel); max-width:560px; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.swoosh-rule{
  width:70px; height:5px; border-radius:3px; background:var(--red);
  position:relative;
}
.swoosh-rule::after{
  content:""; position:absolute; left:78px; top:0; width:20px; height:5px; border-radius:3px; background:var(--green-light);
}
.swoosh-rule.center{ margin-left:auto; margin-right:auto; }
.swoosh-rule.center::after{ left:50%; transform:translateX(24px); }

/* page hero variant (inner pages, shorter) */
.page-hero{ min-height:340px; }
.page-hero h1{ font-size:clamp(28px, 4vw, 44px); }
.page-hero .lead{ font-size:16px; }

.hero-eyebrow{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--red); margin-bottom:16px; display:block; font-weight:600;
}

/* ============================================================
   Section rhythm
   ============================================================ */
section{ padding:88px 0; }
.section-tight{ padding:60px 0; }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(26px, 3.2vw, 38px); }
.section-head p{ font-size:16px; }

.bg-cream{ background:var(--cream); }
.bg-charcoal{ background:var(--charcoal); }
.bg-charcoal h2,.bg-charcoal h3,.bg-charcoal h4{ color:var(--white); }
.bg-charcoal p{ color:#C9C4BE; }
.bg-charcoal .eyebrow{ color:var(--green-light); }
.bg-green{ background:var(--green); }
.bg-green h2,.bg-green h3,.bg-green h4,.bg-green p{ color:var(--white); }

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

/* Service / action cards (Sell / Rent / Find) */
.action-card{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:34px 28px;
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.action-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background:var(--red);
  transform:scaleX(0); transform-origin:left;
  transition:transform .3s ease;
}
.action-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.action-card:hover::before{ transform:scaleX(1); }
.action-icon{
  width:54px; height:54px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--green-tint); color:var(--green);
  margin-bottom:20px;
}
.action-icon svg{ width:26px; height:26px; }
.action-card h3{ font-size:20px; margin-bottom:10px; }
.action-card p{ font-size:14.5px; margin-bottom:18px; }
.action-card .cta-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13.5px; font-weight:700; color:var(--red);
}

/* Category image cards (property types) */
.cat-card{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.cat-card:hover .cat-image img{ transform:scale(1.06); }
.cat-image{ width:100%; aspect-ratio:4/3; overflow:hidden; }
.cat-image img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.cat-body{ padding:24px 24px 26px; }
.cat-card h3{ font-size:18px; margin-bottom:8px; }
.cat-card p{ font-size:14.5px; margin-bottom:0; }

/* Why-choose feature list */
.feature-row{
  display:flex; gap:20px; padding:26px 0;
  border-bottom:1px solid var(--line);
}
.feature-row:last-child{ border-bottom:none; }
.feature-num{
  font-family:var(--font-mono); font-size:13px; color:var(--red);
  min-width:34px; padding-top:3px;
}
.feature-row h3{ font-size:17px; margin-bottom:6px; }
.feature-row p{ font-size:14.5px; margin-bottom:0; }

/* Stat bar */
.stat-bar{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  background:var(--white);
}
.stat{ padding:30px 22px; border-right:1px solid var(--line); text-align:center; }
.stat:last-child{ border-right:none; }
.stat strong{ display:block; font-family:var(--font-display); font-size:30px; color:var(--green); }
.stat span{ font-size:13px; color:var(--steel); }

/* Mission / vision cards */
.mv-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px; position:relative;
}
.mv-card .swoosh-rule{ margin-bottom:18px; }

.commit-list li{
  display:flex; gap:12px; padding:12px 0; border-bottom:1px dashed var(--line); font-size:15px; color:var(--charcoal);
}
.commit-list li:last-child{ border-bottom:none; }
.commit-list svg{ flex-shrink:0; color:var(--green); margin-top:2px; }

.timeline-quote{
  border-left:3px solid var(--red);
  padding-left:24px; font-family:var(--font-display); font-size:22px; color:var(--charcoal); font-weight:600;
  max-width:720px;
}

/* Differentiator cards (What Makes Us Different) */
.diff-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; display:flex; flex-direction:column; gap:10px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.diff-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.diff-card .tag{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--steel-light);
}

/* Property type list rows (Sell/Rent + Find pages) */
.type-row{
  display:flex; align-items:flex-start; gap:22px; padding:28px 0;
  border-bottom:1px solid var(--line);
}
.type-row:last-child{ border-bottom:none; }
.type-icon{
  width:56px; height:56px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--green-tint); color:var(--green);
}
.type-icon svg{ width:26px; height:26px; }
.type-row h3{ font-size:18px; margin-bottom:6px; }
.type-row p{ font-size:14.5px; margin-bottom:0; }

/* Contact info cards */
.contact-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; margin-bottom:20px;
}
.contact-card h4{ font-size:13px; text-transform:uppercase; letter-spacing:.07em; color:var(--steel-light); margin-bottom:14px; }
.contact-row{ display:flex; gap:14px; margin-bottom:16px; }
.contact-row:last-child{ margin-bottom:0; }
.contact-row .ic{
  width:38px; height:38px; border-radius:10px; background:var(--green-tint); color:var(--green);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-row strong{ display:block; font-size:14.5px; color:var(--charcoal); }
.contact-row span, .contact-row a{ font-size:14px; color:var(--steel); display:block; }
.contact-row a:hover{ color:var(--green); }

.map-embed{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  height:280px; margin-top:8px;
}
.map-embed iframe{ width:100%; height:100%; border:0; }

/* Social strip */
.social-strip{ display:flex; gap:14px; flex-wrap:wrap; }
.social-pill{
  display:flex; align-items:center; gap:10px;
  padding:12px 20px; border-radius:999px;
  background:var(--white); border:1px solid var(--line);
  font-size:14px; font-weight:600; color:var(--charcoal);
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.social-pill:hover{ border-color:var(--green); transform:translateY(-2px); box-shadow:var(--shadow-sm); color:var(--green); }
.social-pill svg{ width:18px; height:18px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  position:relative;
  background:var(--charcoal);
  border-radius:24px;
  padding:56px 48px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:5px; background:var(--red);
}
.cta-band h2{ color:var(--white); font-size:clamp(22px,2.6vw,30px); margin-bottom:8px; }
.cta-band p{ color:#C9C4BE; margin-bottom:0; max-width:440px; }
.cta-band .btn-primary{ background:var(--white); color:var(--charcoal); }
.cta-band .btn-primary:hover{ background:var(--green-light); color:var(--white); }

.cta-triple{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.cta-mini{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cta-mini:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.cta-mini .action-icon{ margin:0 auto 16px; }
.cta-mini h3{ font-size:16px; margin-bottom:8px; }
.cta-mini p{ font-size:13.5px; margin-bottom:16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{ background:#ececec; color:#000000; padding-top:64px; }
.footer-accent{ height:5px; background:var(--red); }
.footer-grid{
  display:grid; grid-template-columns:1.6fr 1fr 1.4fr; gap:44px;
  padding-bottom:44px; border-bottom:1px solid rgba(0,0,0,0.1);
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer-brand img{ height:42px; }
.footer-brand strong{ font-family:var(--font-display); color:#000000; font-size:16px; }
.site-footer p{ color:#000000; font-size:14px; }
.site-footer h4{ color:#000000; font-size:14px; letter-spacing:.04em; text-transform:uppercase; margin-bottom:18px; }
.footer-links li{ margin-bottom:11px; }
.footer-links a{ color:#000000; font-size:14.5px; transition:color .15s ease, padding-left .15s ease; }
.footer-links a:hover{ color:var(--green); padding-left:4px; }
.footer-contact li{ display:flex; gap:10px; margin-bottom:14px; font-size:14px; color:#000000; }
.footer-contact svg{ flex-shrink:0; margin-top:2px; color:#000000; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:26px 0; font-size:13px; color:#000000;
}
.footer-credit a{ color:#000000; font-weight:600; transition:color .15s ease; }
.footer-credit a:hover{ color:var(--green); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-1.in{ transition-delay:.06s; }
.reveal-2.in{ transition-delay:.12s; }
.reveal-3.in{ transition-delay:.18s; }
.reveal-4.in{ transition-delay:.24s; }

/* ============================================================
   Utility
   ============================================================ */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }
.chip{
  display:inline-flex; align-items:center; padding:6px 14px; border-radius:999px;
  background:var(--green-tint); color:var(--green); font-size:12.5px; font-weight:700; font-family:var(--font-mono);
}
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .split{ grid-template-columns:1fr; gap:36px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stat-bar{ grid-template-columns:repeat(2,1fr); }
  .stat{ border-bottom:1px solid var(--line); }
  .cta-triple{ grid-template-columns:1fr; }
}

@media (max-width: 860px){
  .nav-links, .nav-actions .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-wrap{ padding:12px 20px; }

  .mobile-menu{
    visibility:visible;
    background:var(--white); padding:26px 24px;
    transition:transform .3s ease;
    box-shadow:var(--shadow-lg); overflow-y:auto;
  }
  .mobile-menu.open{ transform:translateX(0); }
  .mobile-menu-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
  .mobile-menu a{
    display:block; padding:15px 6px; font-size:17px; font-weight:700; color:var(--charcoal);
    border-bottom:1px solid var(--line);
  }
  .mobile-menu a.active{ color:var(--green); }
  .mobile-menu a.btn{ border-bottom:none; padding:14px 28px; }
  .mobile-menu a.btn-primary{ color:var(--white); }
  .mobile-menu .btn{ width:100%; margin-top:22px; }
  .mobile-overlay{
    visibility:visible;
    background:rgba(35,31,32,0.5);
    transition:opacity .3s ease, visibility .3s ease;
  }
  .mobile-overlay.open{ opacity:1; visibility:visible; pointer-events:auto; }

  section{ padding:60px 0; }
  .hero{ min-height:auto; }
  .hero::before{ background:linear-gradient(180deg, rgba(250,249,246,0.97) 15%, rgba(250,249,246,0.9) 55%, rgba(250,249,246,0.55) 100%); }
  .hero-inner{ padding:46px 20px 40px; }
  .hero-content{ max-width:100%; }
}

@media (max-width: 640px){
  .grid-4,.grid-3,.grid-2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .stat-bar{ grid-template-columns:1fr 1fr; }
  .cta-band{ flex-direction:column; text-align:center; padding:40px 26px; }
  .cta-band p{ max-width:100%; }
  .footer-bottom{ flex-direction:column; text-align:center; }
  .type-row{ flex-direction:column; gap:14px; }
  section{ padding:50px 0; }
  .container{ padding:0 18px; }
}
