/*
Theme Name: Innovators Engineering Consultancy
Theme URI: https://innovatorsengineering.lovable.app
Author: Innovators
Author URI: https://innovatorsengineering.lovable.app
Description: A multidisciplinary engineering consultancy theme covering planning, design, engineering, and project delivery. Optimized for static-page setups on cPanel/Bluehost hosting.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: innovators
Tags: business, portfolio, one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* =====================================================
   Design tokens (sRGB hex equivalents of the React app)
===================================================== */
:root {
  --background: #f7f6f1;
  --foreground: #1f2a1f;
  --card: #fbfaf6;
  --muted: #f1efe8;
  --muted-foreground: #6b7263;
  --primary: #4f6f39;        /* olive green */
  --primary-strong: #3d5a2b;
  --primary-foreground: #ffffff;
  --secondary: #e6e3d6;
  --accent: #c9d2a8;
  --highlight: #c9b66b;       /* warm golden */
  --hero: #1c2a1c;
  --hero-foreground: #f5f4ef;
  --border: #d9d6c8;
  --shadow-elegant: 0 24px 60px -28px rgba(61, 90, 43, 0.26);
  --shadow-panel: 0 16px 40px -24px rgba(31, 42, 31, 0.18);
  --radius: 0.5rem;
  --container: 1200px;
}

/* =====================================================
   Reset & base
===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--foreground); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.25rem; }

/* =====================================================
   Layout helpers
===================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--surface { background-color: #f1efe8; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; color: var(--primary); margin-bottom: .5rem; }
.eyebrow--light { color: var(--highlight); }
.lead { font-size: 1.0625rem; line-height: 1.75; color: var(--muted-foreground); max-width: 60ch; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid--hero { grid-template-columns: 1.1fr 0.9fr; } .grid--split { grid-template-columns: 1.05fr 0.95fr; } }

/* =====================================================
   Header / Nav
===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background-color: rgba(247, 246, 241, 0.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; min-width: 0; }
.brand img,
.brand .custom-logo,
.site-header .custom-logo-link img,
.site-header .custom-logo {
  height: 48px !important;
  width: auto !important;
  max-width: 180px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .brand-name { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--primary); white-space: nowrap; }
.brand-text .brand-tag  { font-size: .75rem; color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 600px) { .brand-text { display: none; } }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.main-nav li { list-style: none; }
.main-nav a { font-size: .9375rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item a, .main-nav .current_page_item a { color: var(--foreground); }
@media (min-width: 768px) { .main-nav { display: block; } }

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.menu-toggle { display: inline-flex; background: transparent; border: 1px solid var(--border); padding: .5rem .75rem; border-radius: var(--radius); cursor: pointer; font-size: .875rem; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; padding: .5rem 0 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mobile-nav a { display: block; padding: .5rem .25rem; border-bottom: 1px solid var(--border); color: var(--foreground); }

/* =====================================================
   Buttons
===================================================== */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .9375rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.btn--hero { background: var(--highlight); color: #2a2410; }
.btn--hero:hover { background: #b8a45a; color: #1f1c0a; }
.btn--soft { background: var(--secondary); color: var(--foreground); border-color: var(--border); }
.btn--soft:hover { background: var(--accent); color: var(--foreground); }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: var(--primary-strong); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* =====================================================
   Hero
===================================================== */
.hero {
  background: linear-gradient(180deg, #1c2a1c 0%, #233628 100%);
  color: var(--hero-foreground);
}
.hero .container { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .hero .container { padding: 6rem 2.2rem; } }
.hero h1 { color: var(--hero-foreground); }
.hero p { color: rgba(245, 244, 239, 0.82); font-size: 1.0625rem; line-height: 1.8; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-image { width: 100%; height: 26rem; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-elegant); }
@media (min-width: 1024px) { .hero-image { height: 100%; } }

/* =====================================================
   Cards / Stats / Project tiles
===================================================== */
.stat-card, .feature-card, .sector-card, .service-card, .project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.25rem; box-shadow: var(--shadow-panel);
}
.stat-card .value { font-size: 2rem; font-weight: 600; color: var(--primary); }
.stat-card .label { font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; }

.service-card { transition: transform .25s ease; }
.service-card:hover { transform: translateY(-3px); }
.service-card-row { display: flex; align-items: flex-start; gap: .75rem; }
.icon-dot { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: var(--primary-strong); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: .75rem; }

.project-card { padding: 0; overflow: hidden; }
.project-card img { width: 100%; height: 18rem; object-fit: cover; }
.project-card-body { padding: 1.5rem; }
.project-card-body .category { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--primary); }
.project-card-body h3 { margin-top: .5rem; font-size: 1.5rem; }
.project-card-body p { color: var(--muted-foreground); font-size: .9375rem; }

/* =====================================================
   CTA section
===================================================== */
.cta {
  border: 1px solid rgba(79, 111, 57, 0.2);
  background: linear-gradient(135deg, rgba(79, 111, 57, 0.08), var(--card) 60%, #f1efe8);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 1024px) { .cta { padding: 3.5rem; } }
.cta-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1.4fr 0.6fr; align-items: center; } }
.cta-feature { display: flex; gap: .75rem; padding: .5rem 0; }
.cta-feature .ic { color: var(--primary); flex-shrink: 0; margin-top: .2rem; }
.cta-feature p { margin: 0; font-size: .8125rem; color: var(--muted-foreground); line-height: 1.6; }
.cta-feature strong { display: block; color: var(--foreground); font-size: .875rem; margin-bottom: .15rem; }
.cta-features-card { background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: .75rem; padding: 1.25rem; backdrop-filter: blur(4px); }

/* =====================================================
   Forms
===================================================== */
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-control { width: 100%; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: .9375rem; font-family: inherit; color: var(--foreground); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,111,57,.15); }
textarea.form-control { min-height: 8rem; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .75rem 1rem; border-radius: var(--radius); font-size: .9375rem; margin-bottom: 1rem; }
.form-msg--success { background: #e6f0d8; color: #2f4d18; border: 1px solid #a8c878; }
.form-msg--error   { background: #fbe5e5; color: #6f1d1d; border: 1px solid #e5a3a3; }

/* =====================================================
   Contact info card
===================================================== */
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-panel); }
.info-row { display: flex; align-items: center; gap: .75rem; padding: .35rem 0; color: var(--muted-foreground); font-size: .9375rem; }
.info-row .ic { color: var(--primary); }

/* =====================================================
   Footer
===================================================== */
.site-footer { border-top: 1px solid var(--border); background: #f1efe8; padding: 2.5rem 0; margin-top: 2rem; }
.site-footer .brand-name { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--primary); }
.site-footer p { color: var(--muted-foreground); font-size: .875rem; max-width: 60ch; margin-top: .5rem; }

/* =====================================================
   WP core required classes (accessibility & alignment)
===================================================== */
.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal !important; }
.alignleft { float:left; margin: 0 1.5em 1em 0; }
.alignright { float:right; margin: 0 0 1em 1.5em; }
.aligncenter { display:block; margin-left:auto; margin-right:auto; }
.sticky, .gallery-caption, .bypostauthor, .wp-caption, .wp-caption-text { display:block; }
