/***
====================================================================
  Zapier-Style Typography System
  Loaded AFTER responsive.css to override template defaults
====================================================================
***/

/* ========================
   CSS Custom Properties
   ======================== */
:root {
  /* Font families */
  --font-display: 'Outfit', 'Inter', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;

  /* Font sizes */
  --fs-h1: 64px;
  --fs-h2: 56px;
  --fs-h3: 40px;
  --fs-h4: 24px;
  --fs-h5: 20px;
  --fs-h6: 16px;
  --fs-body: 16px;
  --fs-subtitle: 14px;
  --fs-btn: 15px;
  --fs-small: 14px;
  --fs-xs: 12px;

  /* Line heights */
  --lh-h1: 0.95;
  --lh-h2: 0.95;
  --lh-h3: 1.1;
  --lh-h4: 1.2;
  --lh-h5: 1.25;
  --lh-h6: 1.3;
  --lh-body: 1.5;
  --lh-subtitle: 1.3;

  /* Font weights */
  --fw-display: 500;
  --fw-heading: 600;
  --fw-body: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Letter spacing */
  --ls-display: -0.02em;
  --ls-heading: -0.01em;
  --ls-body: -0.01em;
  --ls-subtitle: 0.08em;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  /* Button */
  --btn-radius: 8px;
  --btn-padding: 18px 48px;
}


/* ========================
   Base Element Overrides
   ======================== */

body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: var(--fw-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

h5 {
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

h6 {
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Navigation
   ======================== */

.main-menu .navigation > li > a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
  text-transform: none;
}

.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > .megamenu li > a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
  letter-spacing: var(--ls-body);
}

.mobile-menu .navigation li a {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
}

.header-upper .info-box p,
.header-upper .info-box h6 {
  font-family: var(--font-body);
  letter-spacing: var(--ls-body);
}

.header-top p,
.header-top a,
.header-top li a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-body);
}


/* ========================
   Banner / Hero
   ======================== */

.banner-section .content-box h2,
.banner-section .slide-item .content-box h2,
.banner-section-two .content-box h2,
.banner-section-three .content-box h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.banner-section .content-box p,
.banner-section .slide-item .content-box p,
.banner-section-two .content-box p,
.banner-section-three .content-box p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: var(--ls-body);
}


/* ========================
   Section Titles
   ======================== */

.sec-title p {
  font-family: var(--font-body) !important;
  font-size: var(--fs-subtitle) !important;
  line-height: var(--lh-subtitle) !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: var(--ls-subtitle) !important;
  text-transform: uppercase;
}

.sec-title h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}


/* ========================
   Page Titles (Breadcrumb)
   ======================== */

.page-title .content-box h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.page-title .bread-crumb li,
.page-title .bread-crumb li a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
}


/* ========================
   Feature Blocks
   ======================== */

.feature-block .inner-box h3,
.feature-block .inner-box h3 a,
.feature-block-two .inner-box h3,
.feature-block-two .inner-box h3 a,
.feature-block-three .inner-box h3,
.feature-block-three .inner-box h3 a {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.feature-block .inner-box p,
.feature-block-two .inner-box p,
.feature-block-three .inner-box p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Service Blocks
   ======================== */

.service-block .inner-box h3,
.service-block .inner-box h3 a,
.service-block-two .inner-box h3,
.service-block-two .inner-box h3 a,
.service-block-three .inner-box h3,
.service-block-three .inner-box h3 a {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.service-block .inner-box p,
.service-block-two .inner-box p,
.service-block-three .inner-box p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Service Details / Sidebar
   ======================== */

.service-details-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.service-details-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.service-details-content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.service-sidebar .category-widget .category-list li a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
}

.service-sidebar h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}


/* ========================
   Counters / Fun Facts
   ======================== */

.counter-block .count-outer,
.counter-block .count-outer .count-text {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
}

.counter-block p,
.counter-block h4 {
  font-family: var(--font-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   CTA / Call to Action
   ======================== */

.cta-section h2,
.cta-section-two h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.cta-section p,
.cta-section-two p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: var(--ls-body);
}


/* ========================
   Testimonials
   ======================== */

.testimonial-block .inner-box .text p,
.testimonial-block-two .inner-box .text p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  letter-spacing: var(--ls-body);
}

.testimonial-block .inner-box .author-info h4,
.testimonial-block-two .inner-box .author-info h4 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
}

.testimonial-block .inner-box .author-info .designation,
.testimonial-block-two .inner-box .author-info .designation {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-body);
}


/* ========================
   Team
   ======================== */

.team-block .inner-box .lower-content h3,
.team-block .inner-box .lower-content h3 a,
.team-block-two .inner-box .lower-content h3,
.team-block-two .inner-box .lower-content h3 a {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.team-block .inner-box .lower-content .designation,
.team-block-two .inner-box .lower-content .designation {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Team Details
   ======================== */

.team-details-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.team-details-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.team-details-content .designation {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  letter-spacing: var(--ls-body);
}

.team-details-content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   News / Blog
   ======================== */

.news-block .inner-box .lower-content h3,
.news-block .inner-box .lower-content h3 a,
.news-block-two .inner-box .lower-content h3,
.news-block-two .inner-box .lower-content h3 a {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.news-block .inner-box .lower-content p,
.news-block-two .inner-box .lower-content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.news-block .inner-box .lower-content .post-info li,
.news-block-two .inner-box .lower-content .post-info li {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-body);
}


/* ========================
   Blog Details
   ======================== */

.blog-details-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.blog-details-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.blog-details-content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.blog-details-content .comment-box .comment h4 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
}


/* ========================
   Sidebar Widgets
   ======================== */

.sidebar .widget-title h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.sidebar .search-widget input,
.sidebar .category-widget li a,
.sidebar .post-widget .post h4 a,
.sidebar .tags-widget .tags-list li a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Footer
   ======================== */

.main-footer h3,
.footer-widget-section h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.main-footer p,
.footer-widget-section p,
.main-footer .links-widget li a,
.footer-widget-section .links-widget li a,
.main-footer .footer-bottom p,
.footer-widget-section .footer-bottom p {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.main-footer .info-widget li,
.footer-widget-section .info-widget li {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Buttons
   ======================== */

.theme-btn-one {
  font-family: var(--font-body) !important;
  font-size: var(--fs-btn) !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: var(--ls-body) !important;
  border-radius: var(--btn-radius) !important;
  padding: var(--btn-padding) !important;
  text-transform: none !important;
}

.theme-btn-two {
  font-family: var(--font-body) !important;
  font-size: var(--fs-btn) !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: var(--ls-body) !important;
  border-radius: var(--btn-radius) !important;
}


/* ========================
   Forms
   ======================== */

.contact-section .form-group input,
.contact-section .form-group textarea,
.appointment-section .form-group input,
.appointment-section .form-group textarea,
.appointment-section .form-group select {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Pagination
   ======================== */

.pagination li a {
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: var(--ls-body) !important;
}


/* ========================
   Error Page
   ======================== */

.error-section h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
}

.error-section h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.error-section p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: var(--ls-body);
}


/* ========================
   Contact Page
   ======================== */

.contact-section h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.contact-info-section .info-block h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}

.contact-info-section .info-block p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Accordion / FAQ
   ======================== */

.accordion-box .block .acc-btn h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
}

.accordion-box .block .acc-content p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   About Section
   ======================== */

.about-section .content-box h2,
.about-section-two .content-box h2,
.about-section-three .content-box h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.about-section .content-box p,
.about-section-two .content-box p,
.about-section-three .content-box p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}


/* ========================
   Preloader
   ======================== */

.dpc-spine-loader .dpc-loader-name {
  font-family: var(--font-display) !important;
  letter-spacing: 8px;
}

.dpc-spine-loader .dpc-loader-tagline {
  font-family: var(--font-body) !important;
  letter-spacing: 4px;
}

.handle-preloader .animation-preloader .txt-loading .letters-loading {
  font-family: var(--font-display) !important;
}


/* ========================
   Header Top / Upper
   ======================== */

.header-style-one .header-top .top-inner .info li,
.header-style-two .header-top .top-inner .info li,
.header-style-three .header-top .top-inner .info li {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-body);
}


/* ========================
   Scroll to Top
   ======================== */

.scroll-top {
  border-radius: var(--btn-radius);
}


/* ================================================================
   RESPONSIVE TYPOGRAPHY
   4-tier scaling: 991px, 767px, 499px, 399px
   ================================================================ */

/* ---- Tier 1: Tablets ---- */
@media only screen and (max-width: 991px) {
  :root {
    --fs-h1: 56px;
    --fs-h2: 44px;
    --fs-h3: 32px;
    --fs-h4: 22px;
    --fs-h5: 18px;
    --fs-btn: 15px;
    --btn-padding: 16px 40px;
  }

  .banner-section .content-box h2,
  .banner-section .slide-item .content-box h2,
  .banner-section-two .content-box h2,
  .banner-section-three .content-box h2 {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
  }

  .banner-section .content-box p,
  .banner-section .slide-item .content-box p,
  .banner-section-two .content-box p,
  .banner-section-three .content-box p {
    font-size: 16px;
  }

  .sec-title h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }

  .page-title .content-box h1 {
    font-size: var(--fs-h1);
  }

  .cta-section h2,
  .cta-section-two h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }

  .cta-section p,
  .cta-section-two p {
    font-size: 16px;
  }
}

/* ---- Tier 2: Large phones / small tablets ---- */
@media only screen and (max-width: 767px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-h4: 20px;
    --fs-h5: 18px;
    --fs-body: 15px;
    --fs-btn: 14px;
    --btn-padding: 14px 36px;
  }

  .banner-section .content-box h2,
  .banner-section .slide-item .content-box h2,
  .banner-section-two .content-box h2,
  .banner-section-three .content-box h2 {
    font-size: var(--fs-h1);
    line-height: 1.05;
  }

  .banner-section .content-box p,
  .banner-section .slide-item .content-box p,
  .banner-section-two .content-box p,
  .banner-section-three .content-box p {
    font-size: 15px;
  }

  .sec-title h2 {
    font-size: var(--fs-h2);
    line-height: 1.05;
  }

  .page-title .content-box h1 {
    font-size: var(--fs-h1);
    line-height: 1.05;
  }

  .error-section h1 {
    font-size: 120px;
  }

  .testimonial-block .inner-box .text p,
  .testimonial-block-two .inner-box .text p {
    font-size: 16px;
  }

  .cta-section p,
  .cta-section-two p,
  .error-section p {
    font-size: 15px;
  }
}

/* ---- Tier 3: Phones ---- */
@media only screen and (max-width: 499px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 22px;
    --fs-h4: 18px;
    --fs-h5: 16px;
    --fs-h6: 15px;
    --fs-body: 15px;
    --fs-small: 13px;
    --fs-btn: 14px;
    --btn-padding: 14px 32px;
  }

  .banner-section .content-box h2,
  .banner-section .slide-item .content-box h2,
  .banner-section-two .content-box h2,
  .banner-section-three .content-box h2 {
    font-size: var(--fs-h1);
    line-height: 1.1;
  }

  .sec-title h2 {
    font-size: var(--fs-h2);
    line-height: 1.1;
  }

  .sec-title p {
    font-size: var(--fs-xs) !important;
    letter-spacing: 0.06em !important;
  }

  .page-title .content-box h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
  }

  .error-section h1 {
    font-size: 80px;
  }

  .testimonial-block .inner-box .text p,
  .testimonial-block-two .inner-box .text p {
    font-size: 15px;
  }
}

/* ---- Tier 4: Very small phones ---- */
@media only screen and (max-width: 399px) {
  :root {
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-h5: 16px;
    --fs-body: 14px;
    --fs-small: 13px;
    --fs-xs: 11px;
    --fs-btn: 13px;
    --btn-padding: 12px 28px;
  }

  .banner-section .content-box h2,
  .banner-section .slide-item .content-box h2,
  .banner-section-two .content-box h2,
  .banner-section-three .content-box h2 {
    font-size: var(--fs-h1);
    line-height: 1.1;
  }

  .sec-title h2 {
    font-size: var(--fs-h2);
    line-height: 1.1;
  }

  .page-title .content-box h1 {
    font-size: var(--fs-h1);
    line-height: 1.15;
  }

  .error-section h1 {
    font-size: 60px;
  }
}
