/*
Theme Name: ZH Wadia Secure
Theme URI: https://zhwadia.com/
Author: ZH Wadia
Description: Lightweight custom theme for Zawareh H. Wadia, Consulting Structural Engineer.
Version: 1.0.2
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: zhwadia-secure
*/

:root {
  --ink: #102b33;
  --muted: #60747a;
  --teal: #087f88;
  --teal-bright: #01aaad;
  --navy: #063847;
  --sand: #f4f1e9;
  --line: #dce5e7;
  --white: #fff;
  --shadow: 0 18px 55px rgba(8, 54, 65, .13);
  --radius: 18px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.45rem, 5vw, 5.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25rem; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { width: auto; height: auto; clip: auto; margin: 12px; padding: 10px 14px; z-index: 10000; background: #fff; }
.site-wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(6, 56, 71, .08);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand img { display: block; width: 250px; max-height: 58px; object-fit: contain; object-position: left center; }
.site-brand-text { color: var(--navy); font-weight: 800; text-decoration: none; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; color: var(--navy); font: inherit; }
.primary-nav ul { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a { color: var(--ink); font-size: .91rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--teal); }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: -18px; display: none; min-width: 230px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: grid; gap: 10px; }

.hero {
  min-height: min(780px, calc(100vh - 82px)); display: grid; align-items: center;
  color: #fff; background: linear-gradient(90deg, rgba(3, 40, 50, .9), rgba(3, 40, 50, .38)),
    url('/wp-content/uploads/legacy/slider/slider-01.jpg') center/cover no-repeat;
}
.hero-inner { width: var(--wrap); margin-inline: auto; padding-block: 110px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: #86e2df; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1 { max-width: 900px; margin: 18px 0 22px; color: #fff; }
.hero p { max-width: 700px; color: rgba(255, 255, 255, .83); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  background: var(--teal-bright); color: #fff; font: inherit; font-weight: 800; text-decoration: none;
}
.button:hover, button:hover, input[type="submit"]:hover { background: #07888f; color: #fff; }
.button-ghost { border: 1px solid rgba(255, 255, 255, .5); background: transparent; }
.button-ghost:hover { background: #fff; color: var(--navy); }

.page-hero { padding: 94px 0 80px; color: #fff; background: linear-gradient(90deg, rgba(3, 47, 58, .94), rgba(3, 47, 58, .65)), #063847; }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(2.2rem, 4.5vw, 4.5rem); }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, .75); }
.content-shell { width: var(--wrap); margin-inline: auto; padding-block: 78px 110px; overflow-wrap: anywhere; }
.content-shell > *:first-child { margin-top: 0; }
.content-shell > *:last-child { margin-bottom: 0; }

.sppb-section { margin: 0 0 58px; }
.sppb-container, .sppb-container-inner { width: 100%; }
.sppb-row { display: flex; flex-wrap: wrap; gap: 28px; }
.sppb-row, [class*="sppb-col-"] { max-width: 100%; }
[class*="sppb-col-"] { flex: 1 1 280px; min-width: 0; }
.sppb-addon-content { min-width: 0; overflow-wrap: anywhere; }
.sppb-addon-content ul, .content-shell ul { padding-left: 1.25rem; }
.sppb-addon-content li, .content-shell li { margin-bottom: .5rem; }
.sppb-img-container, .sppb-img-responsive { border-radius: var(--radius); }
.sppb-addon-single-image img { box-shadow: var(--shadow); }
.sppb-panel, .sppb-addon-accordion .sppb-panel {
  margin-bottom: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.sppb-panel-title { margin: 0 0 10px; font-size: 1.08rem; }
.sppb-panel-collapse { display: block !important; height: auto !important; }
.sppb-carousel, .sppb-carousel-pro { display: none; }
.sppb-addon-person, .sppb-person-information { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(8, 54, 65, .08); }
.sppb-person-name { margin: 0 0 6px; }
.sppb-person-designation { color: var(--teal); font-weight: 700; }
.sppb-table-style { width: 100%; border-collapse: collapse; }
.sppb-table-style td, .sppb-table-style th { padding: 13px 16px; border: 1px solid var(--line); vertical-align: top; }
.sppb-table-style tr:nth-child(even) { background: #f7faf9; }

.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-gallery figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; border-radius: var(--radius); background: var(--sand); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-gallery figure:hover img { transform: scale(1.035); }
.project-gallery figcaption { position: absolute; inset: auto 0 0; padding: 24px 18px 15px; color: #fff; background: linear-gradient(transparent, rgba(3, 40, 50, .9)); font-size: .86rem; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; }
.contact-card { padding: 30px; border-radius: var(--radius); background: var(--sand); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; color: var(--navy); font-size: .9rem; font-weight: 800; }
input, textarea, select {
  width: 100%; border: 1px solid #cbd8db; border-radius: 10px; padding: 13px 14px;
  background: #fff; color: var(--ink); font: inherit;
}
input:focus, textarea:focus { outline: 3px solid rgba(1, 170, 173, .18); border-color: var(--teal-bright); }
textarea { min-height: 165px; resize: vertical; }
.notice { margin-bottom: 22px; padding: 14px 18px; border-radius: 10px; background: #eaf8f4; color: #145f53; }
.notice-error { background: #fff0f0; color: #8c2626; }
.hp-field { position: absolute !important; left: -10000px !important; }

.site-footer { color: rgba(255, 255, 255, .76); background: #052f3a; }
.footer-grid { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 42px; padding-block: 68px 48px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #8fdfdb; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; text-align: center; font-size: .85rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 15px; }
  .primary-nav .sub-menu { position: static; display: grid; margin: 10px 0 0 14px; padding: 0; border: 0; box-shadow: none; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .site-wrap, .content-shell, .hero-inner, .footer-grid { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  .header-inner { min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .site-brand { min-width: 0; }
  .site-brand img { width: 190px; }
  .primary-nav { top: 72px; left: 14px; right: 14px; }
  .hero { min-height: 640px; }
  .hero-inner { padding-block: 80px; }
  .content-shell { padding-block: 55px 80px; }
  .field-row, .project-gallery { grid-template-columns: 1fr; }
  .sppb-row { gap: 18px; }
}
