/*
Theme Name: Ozonewebs
Theme URI: https://ozonewebs.com
Author: Ozonewebs Tech Solutions
Author URI: https://ozonewebs.com
Description: Custom theme for Ozonewebs Tech Solutions — navy and orange corporate palette, Sora + Inter.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ozonewebs
*/

:root {
  --navy: #16337c;
  --navy-deep: #0e2257;
  --navy-ink: #111c3d;
  --accent: #f49e1f;
  --accent-deep: #d97f06;
  --ink: #1d2433;
  --body: #5b6472;
  --muted: #5b6472;
  --line: #e5e8f0;
  --wash: #f7f8fc;
  --panel: #e8ebf3;
  --white: #ffffff;
  --accent-soft: #fef4e4;
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --shadow: 0 12px 32px rgba(17,28,61,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0;
  line-height: 1.2;
}
h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
}

.eyebrow {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow { color: var(--accent-deep); letter-spacing: 0.18em; }
.eyebrow.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--navy-ink); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--accent); color: var(--navy-ink); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-logo img { max-height: 36px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 30px 0;
  display: inline-block;
}
.primary-nav a:hover { color: var(--accent); }

/* Dropdown — no gap between parent and panel, so the cursor never
   crosses dead space and the menu doesn't close prematurely. */
.primary-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  margin: 0;
  padding: 8px;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(15,23,42,0.1);
  flex-direction: column;
  gap: 0;
  z-index: 200;
}
.primary-nav li:hover > ul { display: flex; }
.primary-nav ul ul a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
}
.primary-nav ul ul a:hover { background: var(--wash); color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}

/* Hero — navy block, matching the ODIV feel */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 80px 0 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .inner { display: flex; gap: 56px; align-items: center; padding-bottom: 72px; }
.hero .copy { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); color: #fff; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.82); margin: 0; }
.hero .eyebrow { color: var(--accent); }
.hero .actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

/* Checklist strip under the hero buttons */
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
}
.hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.88);
}
.hero-checks .tick { color: var(--accent); font-weight: 700; }

/* Hero media — 'contain' so laptop/browser mockups are never cropped */
.hero .media {
  flex: 1;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .media img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 0;
}
.hero .media .placeholder {
  width: 100%;
  min-height: 320px;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}

/* Stats bar across the bottom of the hero */
.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-wrap: wrap;
}
.hero-stats .stat {
  flex: 1;
  min-width: 180px;
  padding: 24px 12px;
  text-align: center;
}
.hero-stats .value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}
.hero-stats .label { font-size: 14px; color: rgba(255,255,255,0.75); }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: 34px; margin-bottom: 32px; }

/* Service cards */
.card-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.service-card {
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { border-color: #CBD5E1; box-shadow: 0 6px 20px rgba(15,23,42,0.06); }
.service-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.service-card h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; }
.service-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Work grid */
.work-item { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 14px; }
.work-item .thumb {
  height: 180px;
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-item .thumb img { width: 100%; height: 180px; object-fit: cover; }
.work-item h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; }
.work-item .meta { font-size: 13px; color: var(--muted); }

/* Sector pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  color: var(--ink);
}

/* CTA */
.cta {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { color: var(--white); font-size: 28px; margin: 0 0 8px; }
.cta p { color: #94A3B8; margin: 0; font-size: 15px; }

/* Page content */
.page-content { color: var(--body); }
.page-content h1 { font-size: 42px; margin-bottom: 24px; }
.page-content h2 { font-size: 28px; margin: 32px 0 16px; }
.page-content h3 { font-size: 21px; margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; font-size: 17px; }
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content ul, .page-content ol { padding-left: 22px; margin-bottom: 16px; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: 10px; margin: 24px 0; }

/* Contact cards */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
}
.contact-card .label {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-card a { font-size: 18px; color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.site-footer .top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.site-footer a { font-size: 14px; color: var(--body); }
.site-footer a:hover { color: var(--accent); }
.site-footer .copyright {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 4px; width: 100%; }
  .primary-nav.is-open a { padding: 8px 0; }
  .primary-nav.is-open ul ul {
    display: flex;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .hero { padding: 48px 0 0; }
  .hero .inner { flex-direction: column; align-items: stretch; padding-bottom: 48px; }
  .hero-stats .stat { min-width: 50%; padding: 18px 10px; }
  .section h2 { font-size: 27px; }
  .page-content h1 { font-size: 32px; }
  .cta { padding: 32px; }
}
