/* TERA NET Modern Design — visual layer only; original content and functionality remain intact. */
:root {
  --tn-green: #00A651;
  --tn-green-dark: #008742;
  --tn-green-deep: #063D2A;
  --tn-green-pale: #E9F8EF;
  --tn-blue: #169FE6;
  --tn-ink: #15231D;
  --tn-muted: #68756F;
  --tn-line: #E3EBE6;
  --tn-surface: #FFFFFF;
  --tn-bg: #F6F9F7;
  --tn-radius: 18px;
  --tn-shadow: 0 12px 34px rgba(13, 53, 34, .08);
}
html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body { color: var(--tn-ink); background: var(--tn-surface); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--tn-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--tn-blue); }
:focus-visible { outline: 3px solid rgba(22,159,230,.55); outline-offset: 3px; }
h1,h2,h3,h4,h5,h6,.entry-title,.wp-block-heading { font-family: 'Manrope','Inter',sans-serif; color: var(--tn-green-deep); font-weight: 800; line-height: 1.18; letter-spacing: -.035em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
p { margin-top: 0; }
/* Header and navigation — broad compatibility with common WordPress themes/builders. */
#masthead, header.site-header, .site-header, .elementor-location-header, header.wp-block-template-part {
  position: relative; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--tn-line);
  box-shadow: 0 4px 18px rgba(13,53,34,.035);
}
#masthead .container, .site-header .container, .elementor-location-header .elementor-container { max-width: 1240px; }
.site-title a, .site-branding a, .custom-logo-link { text-decoration: none; }
.main-navigation a, .primary-menu a, .elementor-nav-menu a, nav a, .wp-block-navigation a {
  font-weight: 600; text-decoration: none; transition: color .18s ease, background .18s ease;
}
.main-navigation a:hover, .primary-menu a:hover, .elementor-nav-menu a:hover, .wp-block-navigation a:hover { color: var(--tn-green); }
/* Content width and section rhythm */
.site-content, .content-area, main, .entry-content, .wp-site-blocks > main { min-width: 0; }
.entry-content > *, .wp-block-post-content > * { max-width: 100%; }
.site-main, .content-area, .site-content .container { box-sizing: border-box; }
section, .elementor-section { scroll-margin-top: 90px; }
.entry-content > h1, .entry-content > h2, .entry-content > h3, .wp-block-post-content > h1, .wp-block-post-content > h2 { margin-top: 1.6em; margin-bottom: .65em; }
/* Buttons and calls to action */
button, input[type="button"], input[type="submit"], input[type="reset"], .button, a.button, .wp-block-button__link,
.elementor-button, .elementor a.elementor-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wpcf7-submit, .gform_button, .wpforms-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 12px 23px;
  border: 1px solid var(--tn-green) !important; border-radius: 999px !important; background: var(--tn-green) !important;
  color: #fff !important; font-weight: 700 !important; line-height: 1.2; text-decoration: none !important;
  box-shadow: 0 7px 18px rgba(0,166,81,.18); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:hover, a.button:hover, .wp-block-button__link:hover,
.elementor-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wpcf7-submit:hover, .wpforms-submit:hover {
  background: var(--tn-green-dark) !important; border-color: var(--tn-green-dark) !important; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,135,66,.24);
}
.wp-block-button.is-style-outline .wp-block-button__link, .elementor-button.elementor-button-link.elementor-size-sm { box-shadow: none; }
/* Cards, columns, services, posts */
.wp-block-group.is-style-card, .wp-block-column, .elementor-widget-container, .service-box, .service-item, .card, article.post, article.page,
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .wp-block-post, .elementor-post, .elementor-cta {
  border-radius: var(--tn-radius); 
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .elementor-post, .wp-block-post, article.post {
  overflow: hidden; background: #fff; border: 1px solid var(--tn-line); box-shadow: 0 5px 22px rgba(13,53,34,.045); transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover, .woocommerce-page ul.products li.product:hover, .elementor-post:hover, .wp-block-post:hover, article.post:hover {
  transform: translateY(-4px); box-shadow: var(--tn-shadow);
}
.woocommerce ul.products li.product a img, .elementor-post__thumbnail img { transition: transform .3s ease; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.025); }
/* Gentle backgrounds and visual separators */
.wp-block-group.has-background, .elementor-section.has_eae_slider, .elementor-section .elementor-container { border-radius: 0; }
.wp-block-quote, blockquote { border-left: 4px solid var(--tn-green); background: var(--tn-green-pale); padding: 18px 22px; border-radius: 0 14px 14px 0; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--tn-line); }
/* Forms */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea {
  max-width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #D7E3DC; border-radius: 12px; background: #fff; color: var(--tn-ink); box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--tn-green) !important; box-shadow: 0 0 0 4px rgba(0,166,81,.1) !important; outline: none; }
label { font-weight: 600; }
/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--tn-line); border-radius: 14px; overflow: hidden; }
th { background: var(--tn-green-pale); color: var(--tn-green-deep); font-weight: 700; }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--tn-line); text-align: left; }
tr:last-child td { border-bottom: 0; }
/* WooCommerce store */
.woocommerce span.onsale { background: var(--tn-green); border-radius: 999px; min-height: auto; min-width: auto; padding: 7px 12px; line-height: 1.2; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--tn-green-dark); font-weight: 800; }
.woocommerce div.product form.cart, .woocommerce .quantity { margin-top: 1rem; }
.woocommerce .quantity .qty { min-height: 46px; border-radius: 10px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--tn-green); border-radius: 12px; background: var(--tn-green-pale); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--tn-green); }
/* Footer */
#colophon, footer.site-footer, .site-footer, .elementor-location-footer, footer.wp-block-template-part {
  background: #082F22; color: rgba(255,255,255,.82); border-top: 4px solid var(--tn-green);
}
#colophon h1, #colophon h2, #colophon h3, .site-footer h1, .site-footer h2, .site-footer h3, .elementor-location-footer h2, .elementor-location-footer h3 { color: #fff; }
#colophon a, .site-footer a, .elementor-location-footer a, footer.wp-block-template-part a { color: #B9F5D0; }
#colophon a:hover, .site-footer a:hover, .elementor-location-footer a:hover { color: #fff; }
/* Utility accessibility */
::selection { background: rgba(0,166,81,.18); color: var(--tn-green-deep); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  button, input[type="submit"], .button, .wp-block-button__link, .elementor-button, .woocommerce a.button, .woocommerce button.button { min-height: 46px; padding: 11px 18px; }
  .entry-content, .wp-block-post-content { overflow-wrap: anywhere; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: 10px 12px; }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { margin-bottom: 20px; }
}
