/*
Theme Name: CustomTheme
Theme URI: https://customTheme.example
Author: Hemnath
Author URI: https://customtheme.example
Description: Custom landing page theme for CustomTheme, a digital marketing agency for dental clinics in Chennai. Converted from a static HTML/CSS/JS landing page design inspired by Perspective.co and Dyte.io.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: customtheme
*/

:root{
  --paper:#FCFDFE;
  --panel:#F3F6F9;
  --ink:#111827;
  --ink-soft:#5B6472;
  --blue:#2B6CF6;
  --blue-dark:#1E4FC4;
  --mint:#12B886;
  --lav:#8B6CF1;
  --amber:#F5A623;
  --amber-dark:#D98C0F;
  --line:#E4E9EF;
  --white:#FFFFFF;

  --display:'Manrope', sans-serif;
  --body:'Inter', sans-serif;
  --mono:'IBM Plex Mono', monospace;

  --max:1180px;
  --radius:20px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

/*h1,h2,h3{ font-family:var(--display); margin:0; font-weight:800; letter-spacing:-0.02em; }*/


/* Screen-reader text (WordPress core convention, used for accessible skip links etc.) */
.screen-reader-text{
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute;
  width:1px; word-wrap:normal !important;
}



/* ---------- NAV ---------- */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(252,253,254,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; gap:24px; }
.logo{ font-family:var(--display); font-weight:800; font-size:20px; letter-spacing:-0.02em; display:flex; align-items:center; gap:9px; }
.logo-mark{ width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg, var(--blue), var(--mint)); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-mark svg{ width:18px; height:18px; }
.logo b{ color:var(--blue); }

.nav-right{ display:flex; align-items:center; gap:36px; }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-family:var(--body); font-weight:600; font-size:14.5px; color:var(--ink-soft); transition:color .15s ease; }
.nav-links a:hover{ color:var(--ink); }

.nav-cta{
  font-family:var(--body); font-weight:700; font-size:14.5px;
  background:var(--ink); color:var(--paper);
  padding:12px 22px; border-radius:999px; border:none; cursor:pointer;
  transition:transform .15s ease, background .15s ease;
  white-space:nowrap;
}
.nav-cta:hover{ background:var(--blue-dark); transform:translateY(-1px); }

.hamburger{
  display:none; width:40px; height:40px;
  border:1px solid var(--line); border-radius:10px; background:var(--white);
  cursor:pointer; flex-shrink:0; padding:0; position:relative;
}
.hamburger span{ position:absolute; left:10px; right:10px; height:1.8px; background:var(--ink); border-radius:2px; transition:transform .22s ease, opacity .22s ease, top .22s ease; }
.hamburger span:nth-child(1){ top:14px; }
.hamburger span:nth-child(2){ top:19.5px; }
.hamburger span:nth-child(3){ top:25px; }
.hamburger.open span:nth-child(1){ top:19.5px; transform:rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ top:19.5px; transform:rotate(-45deg); }

.mobile-menu{ display:none; max-height:0; overflow:hidden; background:var(--white); border-bottom:1px solid var(--line); transition:max-height .28s ease; }
.mobile-menu.open{ max-height:340px; }
.mobile-menu ul{ padding:8px 28px 22px; display:flex; flex-direction:column; }
.mobile-menu a{ font-family:var(--body); font-weight:600; font-size:16px; color:var(--ink); padding:14px 0; border-bottom:1px solid var(--panel); display:block; }
.mobile-menu li:last-child a{ border-bottom:none; }
.mobile-menu .nav-cta{ width:100%; margin-top:8px; text-align:center; }

@media (max-width: 920px){
  .nav-links{ display:none; }
  .hamburger{ display:block; }
  .mobile-menu{ display:block; }
  nav .nav-right > .nav-cta{ display:none; }
}
@media (min-width: 921px){ .mobile-menu{ display:none !important; } }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item:first-child{ border-top:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:none; padding:22px 4px; font-family:var(--body); font-size:16.5px; font-weight:700; color:var(--ink); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-q .plus{ font-family:var(--mono); font-size:18px; color:var(--blue); flex-shrink:0; transition:transform .2s ease; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a p{ padding:0 4px 22px; color:var(--ink-soft); font-size:15px; max-width:70ch; }



footer{ border-top:1px solid var(--line); padding:56px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.footer-col h5{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--ink-soft); margin-bottom:16px; }
.footer-col a{ display:block; font-size:14.5px; color:var(--ink); padding:6px 0; }
.footer-col a:hover{ color:var(--blue); }
footer .bottom{ display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--ink-soft); padding-top:24px; border-top:1px solid var(--line); }

.reveal{ opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-btn{
  position:fixed; right:22px; bottom:22px; z-index:60;
  width:58px; height:58px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(17,24,39,0.28);
  transition:transform .18s ease, box-shadow .18s ease;
}
.whatsapp-btn:hover{ transform:translateY(-2px); }
.whatsapp-btn svg{ width:29px; height:29px; }
.whatsapp-btn .ping{ position:absolute; inset:0; border-radius:50%; background:#25D366; opacity:0.5; animation:wa-ping 2.2s ease-out infinite; }
@keyframes wa-ping{ 0%{ transform:scale(1); opacity:0.45; } 100%{ transform:scale(1.6); opacity:0; } }

/* ---------- BLOG / PAGE FALLBACK TEMPLATES ---------- */
.page-content{ color:var(--ink-soft); font-size:16px; line-height:1.7; }
.page-content p{ margin-bottom:16px; }
.blog-post-card{ margin-bottom:28px; padding-bottom:28px; border-bottom:1px solid var(--line); }
.blog-post-card h3{ font-size:20px; margin-bottom:8px; }
.blog-post-card h3 a:hover{ color:var(--blue); }
.blog-post-meta{ color:var(--ink-soft); font-size:13.5px; }
.blog-post-excerpt{ color:var(--ink-soft); margin-top:10px; font-size:15px; }
.pagination-row{ margin-top:20px; display:flex; gap:10px; }
.pagination-row a, .pagination-row span{ padding:8px 14px; border:1px solid var(--line); border-radius:8px; font-size:13.5px; }

@media (prefers-reduced-motion: reduce){
  .whatsapp-btn .ping{ animation:none; display:none; }
  .reveal{ transition:none; opacity:1; transform:none; }
}

@media (max-width: 980px){
  .stat-strip{ grid-template-columns:1fr; }
  .stat{ border-right:none; border-bottom:1px solid var(--line); }
  .stat:last-child{ border-bottom:none; }
  .framework{ grid-template-columns:1fr 1fr; }
  .compare-grid{ grid-template-columns:1fr; }
  .process{ grid-template-columns:1fr 1fr; }
  .journey{ grid-template-columns:1fr 1fr; }
  .journey::before{ display:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  .intake{ grid-template-columns:1fr; }
  .framework{ grid-template-columns:1fr; }
  .process{ grid-template-columns:1fr; }
  .journey{ grid-template-columns:1fr; }
  .about-card{ grid-template-columns:1fr; }
  .audit{ grid-template-columns:1fr; padding:36px 26px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .whatsapp-btn{ right:16px; bottom:16px; width:52px; height:52px; }
  .whatsapp-btn svg{ width:26px; height:26px; }
}
