/*
Theme Name: Play Doh Machine
Theme URI: https://claypacking.com
Author: Play Doh Machine
Author URI: https://claypacking.com
Description: A custom WordPress theme for Play Doh Machine, a manufacturer of packaging machinery for Plasticine, Play-Doh and Slime. Built around a Products custom post type, a working native contact form, and full Customizer control over the hero, intro and contact details.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
Text Domain: playdoh-machine
*/

/* =====================================================
   PLAY DOH MACHINE — SITE STYLESHEET
   Shared across all templates
===================================================== */

/* ---------------------------------------------------
   TOKENS
--------------------------------------------------- */
:root{
  --blue:   #1eaaf1;
  --blue-dk:#0f8ed1;
  --purple: #5d50c6;
  --green:  #8cc152;
  --red:    #f1453d;
  --orange: #fda639;

  --ink:      #232323;
  --ink-soft: #363636;
  --text:       #333333;
  --text-light: #666666;
  --text-faint: #999999;
  --bg-soft:  #fafafa;
  --border:   #ececec;
  --white:    #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* type scale */
  --fs-eyebrow: 0.8125rem;   /* 13px */
  --fs-small:   0.9375rem;   /* 15px */
  --fs-body:    1rem;        /* 16px */
  --fs-body-lg: 1.125rem;    /* 18px */
  --fs-h3:      1.25rem;     /* 20px */
  --fs-h2:      clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-h1:      clamp(2.375rem, 1.6rem + 3.2vw, 3.75rem);

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --nav-h: 84px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font);
  color:var(--text);
  font-size:var(--fs-body);
  line-height:1.7;
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

h1,h2,h3{ font-family:var(--font); font-weight:800; color:var(--ink); line-height:1.15; letter-spacing:-0.01em; }
h2{ font-size:var(--fs-h2); }
h3{ font-size:var(--fs-h3); font-weight:700; }

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; }
section{ scroll-margin-top: var(--nav-h); }

.eyebrow{
  display:inline-block;
  font-size:var(--fs-eyebrow);
  font-weight:700;
  letter-spacing:0.09em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:14px;
}

.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; }
.section-head p{ font-size:var(--fs-body-lg); color:var(--text-light); margin-top:14px; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-size:var(--fs-small); font-weight:700;
  padding:15px 30px; border-radius:100px; border:none;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--orange); color:var(--ink); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(253,166,57,.35); }
.btn-outline{ border:1.5px solid rgba(255,255,255,.55); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.btn-outline-dark{ border:1.5px solid rgba(35,35,35,.25); color:var(--ink); }
.btn-outline-dark:hover{ background:rgba(35,35,35,.06); border-color:var(--ink); }
.btn-solid-blue{ background:var(--blue); color:var(--white); }
.btn-solid-blue:hover{ background:var(--blue-dk); transform:translateY(-2px); }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------------------------------------------------
   TOP BAR
--------------------------------------------------- */
.topbar{ background:var(--blue); color:#fff; font-size:13px; }
.topbar .container{ display:flex; justify-content:flex-start; align-items:center; height:38px; }
.topbar-links{ display:flex; gap:26px; }
.topbar-links a{ display:flex; align-items:center; gap:6px; color:#fff; transition:opacity .2s; }
.topbar-links a:hover{ opacity:.8; }
.topbar-links i{ width:14px; height:14px; }

/* ---------------------------------------------------
   HEADER / NAV
--------------------------------------------------- */
header.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--border);
  transition:box-shadow .25s ease;
}
header.site-header.scrolled{ box-shadow:0 6px 24px rgba(0,0,0,.06); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; height:var(--nav-h); }

.logo{ display:flex; align-items:center; gap:11px; font-weight:800; font-size:1.25rem; color:var(--ink); }
.logo .logo-mark{
  display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:11px;
  background:linear-gradient(135deg, var(--blue), var(--purple));
  color:#fff; flex:none;
}
.logo .logo-mark i{ width:22px; height:22px; }
.logo span.dim{ color:var(--blue); font-weight:800; }

nav.main-nav{ display:flex; align-items:center; gap:38px; }
nav.main-nav ul{ display:contents; }
nav.main-nav li{ list-style:none; }
nav.main-nav a{ font-size:var(--fs-small); font-weight:600; color:var(--text); position:relative; padding:6px 0; }
nav.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--blue); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
nav.main-nav a:hover{ color:var(--blue); }
nav.main-nav a:hover::after{ transform:scaleX(1); }
nav.main-nav a.current{ color:var(--blue); }
nav.main-nav a.current::after{ transform:scaleX(1); }
nav.main-nav li.current-menu-item > a,
nav.main-nav li.current_page_item > a{ color:var(--blue); }
nav.main-nav li.current-menu-item > a::after,
nav.main-nav li.current_page_item > a::after{ transform:scaleX(1); }

@media (max-width:960px){
  .nav-row{ height:auto; flex-wrap:wrap; padding:16px 0; gap:14px; }
  nav.main-nav{
    width:100%; flex-wrap:nowrap; gap:24px; justify-content:flex-start;
    overflow-x:auto; padding-bottom:2px;
  }
  nav.main-nav::-webkit-scrollbar{ display:none; }
  nav.main-nav a{ white-space:nowrap; }
}

/* ---------------------------------------------------
   HERO (homepage)
--------------------------------------------------- */
.hero{
  position:relative;
  min-height:86vh;
  display:flex; align-items:center;
  color:#fff;
  background:
    linear-gradient(120deg, rgba(20,22,30,.86) 10%, rgba(30,50,90,.62) 55%, rgba(93,80,198,.55) 100%),
    url('hero-bg.jpg') center/cover no-repeat,
    linear-gradient(120deg, #1b2230, #253654 60%, #38356e);
  background-blend-mode:normal;
}
/* Swap in your own photo: replace hero-bg.jpg (place the file in the
   same folder as this page) or change the url() above. The gradient
   stays as an overlay so the headline remains readable on any image. */

.hero-inner{ max-width:660px; padding:120px 0 90px; }
.hero .eyebrow{ color:var(--orange); }
.hero h1{ color:#fff; font-size:var(--fs-h1); margin-bottom:22px; }
.hero p{ font-size:var(--fs-body-lg); color:rgba(255,255,255,.86); max-width:560px; }
.hero-btns{ display:flex; flex-wrap:wrap; gap:16px; margin-top:40px; }

.scroll-cue{
  position:absolute; left:50%; bottom:28px; transform:translateX(-50%);
  color:rgba(255,255,255,.7); animation:bob 2.2s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,8px);} }

/* ---------------------------------------------------
   PAGE BANNER (inner pages)
--------------------------------------------------- */
.page-banner{
  position:relative; padding:34px 0; background:#f8fafc; border-bottom:1px solid var(--border);
}
.breadcrumb{ display:flex; gap:8px; align-items:center; font-size:var(--fs-small); color:var(--text-light); flex-wrap:wrap; }
.breadcrumb a{ color:var(--text-light); transition:color .2s; display:inline-flex; align-items:center; gap:6px; }
.breadcrumb a:hover{ color:var(--blue); }
.breadcrumb span{ color:var(--ink); font-weight:600; }
.breadcrumb i{ width:14px; height:14px; }

/* ---------------------------------------------------
   INTRO (two-column: visual + text)
--------------------------------------------------- */
.intro{ padding:100px 0; }
.intro-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:70px; align-items:center; }
.intro-text p{ font-size:var(--fs-body-lg); color:var(--text-light); margin-top:18px; }

.intro-visual{
  position:relative; aspect-ratio:4/3; max-width:520px; margin:0 auto;
  background:linear-gradient(135deg, rgba(30,170,241,.08), rgba(93,80,198,.10));
  border-radius:28px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; color:var(--blue);
}
.intro-visual img{ width:100%; height:100%; object-fit:cover; display:block; }
.intro-visual i{ width:64px; height:64px; opacity:.55; }

@media (max-width:900px){
  .intro-grid{ grid-template-columns:1fr; gap:50px; }
  .intro-text{ order:2; text-align:center; }
  .intro-visual{ order:1; }
}

/* ---------------------------------------------------
   ICON CHIPS (shared)
--------------------------------------------------- */
.icon-chip{
  width:52px; height:52px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; margin-bottom:22px; flex:none;
}
.icon-chip i{ width:26px; height:26px; }

.c-blue   { background:var(--blue); }
.c-purple { background:var(--purple); }
.c-green  { background:var(--green); }
.c-red    { background:var(--red); }
.c-orange { background:var(--orange); }

.t-blue   { color:var(--blue); }
.t-purple { color:var(--purple); }
.t-green  { color:var(--green); }
.t-red    { color:var(--red); }
.t-orange { color:var(--orange); }

.card-link{ font-size:var(--fs-small); font-weight:700; color:var(--blue); display:inline-flex; align-items:center; gap:6px; }
.card-link i{ width:15px; height:15px; transition:transform .2s ease; }
.card-link:hover i{ transform:translateX(4px); }

/* ---------------------------------------------------
   SOLUTIONS / PRODUCTS GRIDS (tiles)
--------------------------------------------------- */
.solutions{ padding:100px 0; background:var(--bg-soft); }
.products{ padding:100px 0; }
.grid-5{ display:grid; grid-template-columns:repeat(auto-fit, minmax(210px,1fr)); gap:24px; }

.grid-tiles-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
@media (max-width:860px){ .grid-tiles-3{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .grid-tiles-3{ grid-template-columns:1fr; } }

.tile{
  display:block;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 26px; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tile:hover{ transform:translateY(-6px); box-shadow:0 18px 36px rgba(0,0,0,.08); border-color:transparent; }
.tile h3{ font-size:1.05rem; margin-bottom:8px; }
.tile p{ font-size:var(--fs-small); color:var(--text-light); margin-bottom:18px; }

/* responsive image used in place of the old icon-chip inside tiles */
.tile-media{
  border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:4/3; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#eef6fd,#f2f0fb); width:100%;
}
.tile-media i{ width:40px; height:40px; opacity:.55; }

.section-footer-cta{ text-align:center; margin-top:48px; }

/* ---------------------------------------------------
   GENERIC 3-COLUMN GRID (about cards / stats)
--------------------------------------------------- */
.grid-3{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:28px; }
.about-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:38px 32px; transition:transform .3s ease, box-shadow .3s ease;
}
.about-card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(0,0,0,.07); }
.about-card h3{ margin-bottom:12px; }
.about-card p{ color:var(--text-light); font-size:var(--fs-body); margin-bottom:20px; }

/* ---------------------------------------------------
   PLACEHOLDER IMAGE PANELS
   (used until real photography is available)
--------------------------------------------------- */
.ph-image{
  position:relative; border-radius:var(--radius); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#eef6fd,#f2f0fb);
  min-height:240px;
}
.ph-image i{ width:56px; height:56px; opacity:.55; }
.ph-image.dark{ background:linear-gradient(135deg,#1b2230,#38356e); color:rgba(255,255,255,.55); }
.ph-image.square{ aspect-ratio:1/1; }
.ph-image.wide{ aspect-ratio:16/9; }
.ph-image.tall{ aspect-ratio:4/5; }

/* ---------------------------------------------------
   ABOUT PAGE — alternating rows
--------------------------------------------------- */
.about-row{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; padding:64px 0; border-bottom:1px solid var(--border); }
.about-row:last-of-type{ border-bottom:none; }
.about-row.reverse .about-row-media{ order:2; }
.about-row.reverse .about-row-text{ order:1; }
.about-row-text p{ color:var(--text-light); font-size:var(--fs-body-lg); margin-top:16px; }
@media (max-width:860px){
  .about-row{ grid-template-columns:1fr; gap:34px; }
  .about-row.reverse .about-row-media{ order:1; }
  .about-row.reverse .about-row-text{ order:2; }
}

.about-gallery-head{ max-width:640px; margin-bottom:32px; }
.about-gallery-head p{ color:var(--text-light); font-size:var(--fs-body-lg); margin-top:14px; }

.factory-gallery{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.factory-gallery .ph-image{ aspect-ratio:800/600; min-height:0; }
@media (max-width:760px){ .factory-gallery{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:480px){ .factory-gallery{ grid-template-columns:1fr; } }

.clients-gallery{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 200px)); gap:16px; justify-content:center; }
.clients-gallery .ph-image{ aspect-ratio:200/140; min-height:0; }

/* ---------------------------------------------------
   CTA BANNER (about / products / blogs pages)
--------------------------------------------------- */
.cta-banner{
  background:linear-gradient(120deg, var(--blue), var(--purple));
  border-radius:28px; padding:56px 50px; color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-banner h2{ color:#fff; font-size:clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); }
.cta-banner p{ color:rgba(255,255,255,.85); margin-top:8px; }
.cta-banner .btn-primary{ background:#fff; color:var(--ink); }
.cta-banner .btn-primary:hover{ box-shadow:0 12px 26px rgba(0,0,0,.2); }

/* ---------------------------------------------------
   CONTACT PAGE
--------------------------------------------------- */
.contact-page{ padding:90px 0; }
.contact-page-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:50px; align-items:start; }
@media (max-width:900px){ .contact-page-grid{ grid-template-columns:1fr; } }

.contact-form-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:42px; box-shadow:0 18px 50px rgba(0,0,0,.05);
}
.contact-form-card h3{ margin-bottom:8px; }
.contact-form-card > p{ color:var(--text-light); margin-bottom:28px; }

.form-grid{ display:flex; flex-direction:column; gap:20px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:var(--fs-small); font-weight:600; color:var(--ink); }
.field input, .field select, .field textarea{
  border:1.5px solid var(--border); border-radius:10px; padding:13px 16px;
  font-family:inherit; font-size:var(--fs-body); color:var(--text); transition:border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--blue); }
.field textarea{ resize:vertical; min-height:140px; }

.contact-sidebar{ display:flex; flex-direction:column; gap:24px; }
.contact-info-card{
  background:linear-gradient(135deg,#eef6fd,#f2f0fb); color:var(--text);
  border-radius:var(--radius); padding:36px;
}
.contact-info-card h3{ color:var(--ink); margin-bottom:24px; }
.contact-item{ display:flex; gap:16px; align-items:flex-start; }
.contact-item + .contact-item{ margin-top:22px; }
.contact-item .icon-chip{ width:44px; height:44px; background:var(--blue); margin-bottom:0; }
.contact-item .icon-chip i{ width:20px; height:20px; color:#fff; }
.contact-item .label{ font-size:var(--fs-small); color:var(--text-faint); margin-bottom:3px; }
.contact-item .value{ font-size:var(--fs-body-lg); font-weight:600; color:var(--ink); }

.map-panel{
  border-radius:var(--radius); overflow:hidden; min-height:200px;
  background:linear-gradient(135deg,#eef6fd,#f2f0fb);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  color:var(--blue); text-align:center; padding:30px;
}
.map-panel i{ width:38px; height:38px; }
.map-panel span{ font-size:var(--fs-small); color:var(--text-light); max-width:230px; }

/* ---------------------------------------------------
   PRODUCT DETAIL PAGE
--------------------------------------------------- */
.product-detail{ padding:80px 0; }
.product-top{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:flex-start; }
.product-top > *{ min-width:0; } /* grid items default to min-width:auto, which can force overflow on narrow screens */
@media (max-width:900px){ .product-top{ grid-template-columns:1fr; gap:36px; } }

/* responsive wrapper for the DogeCloud video embed (the player itself doesn't know our layout width) */
.video-embed-wrap{ position:relative; width:100%; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; background:#0d0d0d; }
.video-embed-wrap > div{ position:absolute; inset:0; width:100%; height:100%; }
.video-embed-wrap iframe, .video-embed-wrap video{ position:absolute; inset:0; width:100% !important; height:100% !important; }

.product-gallery{ width:100%; }

/* sliding thumbnail gallery with click-to-zoom */
.gallery-main{ width:100%; display:flex; cursor:zoom-in; }
.gallery-thumbs-wrap{ display:flex; align-items:center; gap:10px; margin-top:14px; max-width:100%; }
.gallery-thumbs{ display:flex; gap:12px; overflow-x:auto; scroll-behavior:smooth; flex:1; min-width:0; scrollbar-width:none; }
.gallery-thumbs::-webkit-scrollbar{ display:none; }
.gallery-thumb{ border:2px solid transparent; border-radius:10px; padding:0; background:none; flex:none; width:84px; transition:border-color .2s; }
.gallery-thumb .ph-image{ aspect-ratio:1/1; min-height:0; border-radius:8px; }
.gallery-thumb.active{ border-color:var(--blue); }
.gallery-arrow{ width:34px; height:34px; padding:0; border-radius:50%; border:1px solid var(--border); background:#fff; color:var(--ink); display:flex; align-items:center; justify-content:center; flex:none; transition:.2s; }
.gallery-arrow:hover{ background:var(--blue); border-color:var(--blue); color:#fff; }
.gallery-arrow i{ width:16px; height:16px; }

.lightbox{
  position:fixed; inset:0; background:rgba(20,20,20,.92); z-index:1000;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox-inner{ width:min(680px,86vw); aspect-ratio:4/3; border-radius:16px; overflow:hidden; }
.lightbox-inner .ph-image{ width:100%; height:100%; min-height:0; border-radius:0; }
.lightbox-inner .ph-image i{ width:88px; height:88px; }
.lightbox-close{
  position:absolute; top:26px; right:30px; width:42px; height:42px; padding:0; border-radius:50%;
  background:rgba(255,255,255,.12); border:none; color:#fff; display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{ background:rgba(255,255,255,.22); }

.product-info h1{ font-size:clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem); margin-bottom:16px; }
.product-info > p{ color:var(--text-light); font-size:var(--fs-body-lg); margin-bottom:10px; }

.feature-list{ display:flex; flex-direction:column; gap:14px; margin:26px 0 30px; }
.feature-list li{ display:flex; gap:12px; align-items:flex-start; font-size:var(--fs-body); color:var(--text); }
.feature-list i{ width:20px; height:20px; color:var(--green); flex:none; margin-top:2px; }

.product-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.spec-block{ margin-top:80px; }
.spec-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.spec-table{ width:100%; border-collapse:collapse; max-width:760px; min-width:480px; }
.spec-table tr{ border-bottom:1px solid var(--border); }
.spec-table td{ padding:16px 14px; font-size:var(--fs-small); }
.spec-table td:first-child{ color:var(--text-light); font-weight:600; width:240px; }
.spec-table td:last-child{ color:var(--ink); font-weight:600; }

.related-block{ margin-top:90px; }

/* ---------------------------------------------------
   BLOG LISTING
--------------------------------------------------- */
.blog-listing{ padding:90px 0; }
.grid-blog{ display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:28px; }
.post-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .3s ease, box-shadow .3s ease;
}
.post-card:hover{ transform:translateY(-6px); box-shadow:0 18px 36px rgba(0,0,0,.08); }
.post-card .ph-image{ border-radius:0; min-height:190px; }
.post-card-body{ padding:26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post-tag{ display:inline-block; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--blue); }
.post-card h3{ font-size:1.15rem; }
.post-meta{ font-size:13px; color:var(--text-faint); display:flex; gap:14px; align-items:center; }
.post-meta i{ width:14px; height:14px; }
.post-card p{ color:var(--text-light); font-size:var(--fs-small); flex:1; }

.categories-row{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:54px; }
.categories-row a{ font-size:var(--fs-small); font-weight:600; padding:9px 20px; border-radius:100px; border:1.5px solid var(--border); color:var(--text-light); transition:.2s; }
.categories-row a.active, .categories-row a:hover{ background:var(--blue); border-color:var(--blue); color:#fff; }

/* ---------------------------------------------------
   BLOG ARTICLE
--------------------------------------------------- */
.article-wrap{ padding:70px 0; }
.article{ max-width:760px; margin:0 auto; }
.article h1{ font-size:clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height:1.2; margin-top:14px; }
.article-meta{ display:flex; gap:16px; align-items:center; color:var(--text-faint); font-size:var(--fs-small); margin:18px 0 30px; flex-wrap:wrap; }
.article-meta i{ width:14px; height:14px; }
.article .ph-image{ margin-bottom:34px; }
.article h2{ font-size:1.5rem; margin:36px 0 14px; }
.article h3{ font-size:1.2rem; margin:28px 0 12px; }
.article p{ margin-bottom:18px; color:var(--text); font-size:var(--fs-body-lg); line-height:1.8; }
.article ul{ margin:0 0 18px 22px; list-style:disc; }
.article ul li{ margin-bottom:8px; font-size:var(--fs-body-lg); color:var(--text); }
.article blockquote{
  border-left:4px solid var(--blue); padding:8px 24px; margin:30px 0;
  font-size:1.15rem; font-style:italic; color:var(--ink); background:var(--bg-soft); border-radius:0 12px 12px 0;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
footer.site-footer{ background:#1a1a1a; color:#9a9a9a; padding:70px 0 26px; font-size:var(--fs-small); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1.2fr; gap:50px; padding-bottom:46px; border-bottom:1px solid #2f2f2f; }
.footer-brand .logo{ color:#fff; margin-bottom:16px; }
.footer-brand p{ max-width:320px; line-height:1.8; }
footer h4{ color:#fff; font-size:var(--fs-body); font-weight:700; margin-bottom:20px; }
.footer-nav{ display:flex; flex-direction:column; gap:12px; }
.footer-nav a{ display:flex; align-items:center; gap:8px; }
.footer-nav a i{ width:14px; height:14px; color:var(--blue); flex:none; }
.footer-nav a:hover{ color:#fff; }
.footer-contact{ display:flex; flex-direction:column; gap:14px; }
.footer-contact li{ display:flex; align-items:flex-start; gap:10px; }
.footer-contact i{ width:16px; height:16px; color:var(--blue); flex:none; margin-top:3px; }
.footer-contact a:hover{ color:#fff; }
.bottom-bar{ padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* =====================================================
   RESPONSIVE REFINEMENTS (tablet + mobile)
===================================================== */

/* tablet (~768–1024px) */
@media (max-width:1024px){
  .container{ padding:0 24px; }
  .intro-grid{ gap:44px; }
  .product-top{ gap:40px; }
  .contact-page-grid{ gap:36px; }
}

/* small tablet / large phone (~600–860px) */
@media (max-width:860px){
  section{ scroll-margin-top: calc(var(--nav-h) + 44px); }
  .hero-inner{ padding:90px 0 70px; }
  .intro, .solutions, .products, .contact-page, .blog-listing, .product-detail{ padding:64px 0; }
  .cta-banner{ padding:40px 32px; flex-direction:column; align-items:flex-start; text-align:left; }
  .spec-block{ margin-top:56px; }
  .related-block{ margin-top:60px; }
}

/* phones (max 560px) */
@media (max-width:560px){
  .container{ padding:0 18px; }
  .btn{ padding:14px 22px; }
  .hero-btns .btn{ width:100%; justify-content:center; }
  .tile{ padding:24px 20px; }
  .cta-banner{ padding:32px 22px; border-radius:20px; }
  .cta-banner .btn{ width:100%; justify-content:center; }
  .gallery-thumb{ width:68px; }
  .contact-form-card{ padding:28px; }
  .about-row, .factory-gallery, .clients-gallery{ gap:16px; }
  .page-banner{ padding:26px 0; }
}

/* very small phones (max 380px) */
@media (max-width:380px){
  .logo{ font-size:1.05rem; }
  .logo .logo-mark{ width:36px; height:36px; }
  .logo .logo-mark i{ width:18px; height:18px; }
  nav.main-nav{ gap:18px; }
}

/* =====================================================
   WORDPRESS-SPECIFIC ADDITIONS
===================================================== */

/* real uploaded images inside placeholder frames */
.ph-image img, .tile-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.lightbox-inner img{ width:100%; height:100%; object-fit:contain; background:#0d0d0d; }

/* contact form success / error notice */
.form-notice{ padding:14px 18px; border-radius:10px; font-size:var(--fs-small); margin-bottom:22px; font-weight:600; }
.form-notice.success{ background:rgba(140,193,82,.12); color:#4c7a1f; border:1px solid rgba(140,193,82,.3); }
.form-notice.error{ background:rgba(241,69,61,.08); color:var(--red); border:1px solid rgba(241,69,61,.25); }

/* honeypot spam trap field - hidden from real visitors */
.hp-field{ position:absolute !important; left:-9999px !important; top:-9999px !important; opacity:0; height:0; width:0; overflow:hidden; }

/* Contact Form 7 — style the plugin's default markup to match the theme */
.wpcf7-form p{ margin-bottom:20px; }
.wpcf7-form label{ display:block; font-size:var(--fs-small); font-weight:600; color:var(--ink); margin-bottom:8px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea{
  width:100%; border:1.5px solid var(--border); border-radius:10px; padding:13px 16px;
  font-family:inherit; font-size:var(--fs-body); color:var(--text); transition:border-color .2s;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus{ outline:none; border-color:var(--blue); }
.wpcf7-form textarea{ resize:vertical; min-height:140px; }
.wpcf7-form input[type="submit"]{
  display:inline-flex; align-items:center; gap:8px; font-size:var(--fs-small); font-weight:700;
  padding:15px 30px; border-radius:100px; border:none; background:var(--orange); color:var(--ink);
  cursor:pointer; transition:transform .25s ease, box-shadow .25s ease;
}
.wpcf7-form input[type="submit"]:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(253,166,57,.35); }
.wpcf7-form input[type="submit"]:disabled{ opacity:.6; cursor:default; transform:none; box-shadow:none; }
.wpcf7-not-valid-tip{ color:var(--red); font-size:13px; margin-top:6px; }
.wpcf7-response-output{ border-radius:10px !important; padding:14px 18px !important; font-size:var(--fs-small); margin:0 0 20px !important; }
.wpcf7-mail-sent-ok{ background:rgba(140,193,82,.12); color:#4c7a1f; border-color:rgba(140,193,82,.3) !important; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng{ background:rgba(241,69,61,.08); color:var(--red); border-color:rgba(241,69,61,.25) !important; }
.wpcf7-spinner{ margin-left:10px; }

/* pagination (blog + product archive) */
.pagination{ display:flex; justify-content:center; align-items:center; gap:8px; margin-top:54px; flex-wrap:wrap; }
.pagination a, .pagination span{
  display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 14px;
  border-radius:10px; border:1px solid var(--border); font-size:var(--fs-small); font-weight:600; color:var(--text);
}
.pagination a:hover{ border-color:var(--blue); color:var(--blue); }
.pagination .current{ background:var(--blue); border-color:var(--blue); color:#fff; }

/* core WP accessibility helpers */
.screen-reader-text{
  position:absolute !important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden;
  word-wrap:normal !important;
}
.skip-link{
  position:fixed; top:-100px; left:10px; z-index:100000; background:var(--ink); color:#fff;
  padding:12px 20px; border-radius:8px; font-weight:700; font-size:var(--fs-small); transition:top .2s ease;
}
.skip-link:focus{ top:10px; }

/* WordPress core alignment classes used inside post/page content */
.article img{ border-radius:var(--radius); }
.alignwide{ max-width:960px; }
.alignfull{ max-width:none; width:100%; }
.wp-caption-text{ font-size:var(--fs-small); color:var(--text-faint); margin-top:8px; }

/* empty-state message when a CPT/loop has no items yet */
.empty-state{ text-align:center; padding:60px 20px; color:var(--text-light); }
