/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: A lightweight child theme for Blocksy with header.php and footer.php.
Author: Your Name
Author URI: https://example.com
Template: blocksy
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.6
Text Domain: blocksy-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------------------------------------
   0) Global base
--------------------------------------- */

:root {
  /* Color tokens (align with header/footer palette) */
  --nthaka-green: #3a6b53;
  --nthaka-green-600: #2d5542;
  --nthaka-green-500: #4a7c65;
  --nthaka-green-400: #5a8c75;
  --nthaka-cream: #f8f4e9;
  --nthaka-gold: #d4af37;
  --nthaka-gold-300: #e6c875;
  --nthaka-white: #ffffff;
  --nthaka-text-100: #e8f1ec;
  --nthaka-text-300: #d1d9d5;
  --nthaka-text-600: #a0b8ac;
  --nthaka-shadow: rgba(0, 0, 0, 0.12);

  /* Typography scale */
  --nthaka-font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nthaka-font-head: 'Montserrat', var(--nthaka-font-body);
  --nthaka-leading: 1.65;
  --nthaka-radius: 12px;

  /* Layout */
  --nthaka-container: 1280px;
  --nthaka-container-wide: 1400px;
  --nthaka-gutter: 20px;

  /* Motion */
  --nthaka-ease: cubic-bezier(.175,.885,.32,1.275);
  --nthaka-t: all .3s var(--nthaka-ease);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nthaka-font-body);
  line-height: var(--nthaka-leading);
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media defaults */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links */
a { color: var(--nthaka-green-600); text-decoration: none; transition: var(--nthaka-t); }
a:hover,
a:focus { color: var(--nthaka-green-400); }

/* Headings */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--nthaka-font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: #111;
}

/* Focus styles (accessible + consistent with your brand) */
:focus-visible {
  outline: 2px solid var(--nthaka-gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------
   1) Containers & Sections (scoped helpers)
--------------------------------------- */

.nthaka-container {
  width: 100%;
  max-width: var(--nthaka-container);
  margin-inline: auto;
  padding-inline: var(--nthaka-gutter);
}

.nthaka-container--wide {
  max-width: var(--nthaka-container-wide);
}

.nthaka-section {
  padding: clamp(48px, 7vw, 96px) 0;
}

.nthaka-section--tight { padding: 32px 0; }
.nthaka-section--flush { padding: 0; }

/* Simple responsive grid helper */
.nthaka-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
}
.nthaka-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.nthaka-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.nthaka-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 992px){
  .nthaka-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .nthaka-grid--3,
  .nthaka-grid--2,
  .nthaka-grid--4 { grid-template-columns: 1fr; }
}

/* Cards (generic, opt-in) */
.nthaka-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--nthaka-radius);
  box-shadow: 0 8px 24px var(--nthaka-shadow);
  transition: var(--nthaka-t);
  overflow: hidden;
}
.nthaka-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }

/* Buttons (generic) */
.nthaka-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border-radius: 999px;
  padding: .875rem 1.5rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--nthaka-t);
}
.nthaka-btn--primary {
  background: linear-gradient(90deg, var(--nthaka-gold) 0%, var(--nthaka-gold-300) 100%);
  color: var(--nthaka-green-600);
  box-shadow: 0 8px 24px rgba(212,175,55,.35);
}
.nthaka-btn--primary:hover { transform: translateY(-2px); }
.nthaka-btn--ghost {
  background: transparent;
  color: var(--nthaka-green-600);
  border-color: var(--nthaka-green-500);
}
.nthaka-btn--ghost:hover { background: rgba(90,140,117,.08); }

/* Badges */
.nthaka-badge {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .75rem;
  background: rgba(58,107,83,.12);
  color: var(--nthaka-green-600);
}

/* ---------------------------------------
   2) WordPress & Gutenberg niceties
--------------------------------------- */

/* Wide/full alignments inside content areas */
.alignwide { margin-left: calc(50% - min(50%, var(--nthaka-container-wide) / 2)); margin-right: calc(50% - min(50%, var(--nthaka-container-wide) / 2)); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

/* Block image captions tidy */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: #666; text-align: center; }

/* Buttons block harmonization */
.wp-block-button__link {
  border-radius: 999px;
  padding: .8rem 1.4rem;
  font-weight: 700;
}

/* Lists inside rich text */
.entry-content ul,
.entry-content ol { padding-left: 1.2rem; }

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(0,0,0,.08);
}
.entry-content th,
.entry-content td {
  padding: .75rem .9rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  transition: var(--nthaka-t);
  font: inherit;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--nthaka-green-500); box-shadow: 0 0 0 3px rgba(90,140,117,.15); outline: none; }

/* ---------------------------------------
   3) Helpers & utilities (scoped)
--------------------------------------- */

.nthaka-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nthaka-shadow-sm { box-shadow: 0 4px 12px var(--nthaka-shadow); }
.nthaka-shadow-md { box-shadow: 0 8px 24px var(--nthaka-shadow); }
.nthaka-shadow-lg { box-shadow: 0 14px 36px rgba(0,0,0,.18); }

.nthaka-text-center { text-align: center; }
.nthaka-mx-auto { margin-left: auto; margin-right: auto; }

.nthaka-hide-mobile { display: initial; }
@media (max-width: 640px){ .nthaka-hide-mobile { display: none !important; } }

/* Spacing utilities (small set) */
.nthaka-mb-0 { margin-bottom: 0 !important; }
.nthaka-mb-1 { margin-bottom: .5rem !important; }
.nthaka-mb-2 { margin-bottom: 1rem !important; }
.nthaka-mb-3 { margin-bottom: 1.5rem !important; }
.nthaka-mb-4 { margin-bottom: 2rem !important; }

/* Z-index helpers (for overlays if needed elsewhere) */
.nthaka-z-10 { z-index: 10; position: relative; }
.nthaka-z-100 { z-index: 100; position: relative; }

/* ---------------------------------------
   4) Nthaka hero section coexistence
   (These are intentionally light; your hero has its own scoped CSS)
--------------------------------------- */

/* Ensure hero doesn’t clash with theme containers */
#nthaka-hero .nthaka-hero__carousel { contain: layout paint; }

/* ---------------------------------------
   5) Print styles (lean)
--------------------------------------- */
@media print {
  /* Hide nav/interactive bits typically */
  .nthaka-header-container,
  .nthaka-mobile-menu,
  .nthaka-overlay,
  .nthaka-whatsapp-float { display: none !important; }

  a::after { content: " (" attr(href) ")"; font-size: 90%; color: #555; }
  .nthaka-card,
  .nthaka-section { box-shadow: none !important; }
}