/*
Theme Name: Swirlhead
Theme URI: https://swirlhead.example.com
Author: Swirlhead LLC
Author URI: https://swirlhead.example.com
Description: Custom one-page marketing theme for Swirlhead LLC — product development, manufacturing, and strategic sourcing. Navy and orange palette, Oswald + Inter typography. Section content is editable via the Customizer / template parts.
Version: 1.3.3
Requires at least: 6.0
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: swirlhead
*/

/* ============================================================
   Swirlhead LLC — Theme stylesheet
   Palette + type tokens mirror the original design build.
   ============================================================ */

:root {
  --navy: #0b1c30;
  --navy-deep: #071320;
  --navy-soft: #10273f;
  --orange: #e8601c;
  --orange-dark: #cf5215;
  --sand: #f1f0ee;
  --sand-alt: #e8e7e4;
  --white: #ffffff;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Oswald", var(--font-sans);

  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--navy);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  background-color: var(--navy);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.accent-rule {
  height: 2px;
  width: 56px;
  background: var(--orange);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  padding: 16px 24px;
  font-size: 14px;
}
.btn-orange:hover {
  background: var(--orange-dark);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  font-size: 14px;
}
.btn-navy:hover {
  background: var(--navy-deep);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 19, 32, 0.95);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--orange);
}

.primary-nav a.active {
  color: var(--white);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 24px;
  background: var(--orange);
}

  .header-cta {
  display: inline-flex;
  font-size: 12px;
  padding: 12px 20px;
  }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-deep);
  padding: 0 20px 20px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav a:hover {
  color: var(--orange);
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 12px;
  padding: 12px 20px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right top;
  filter: brightness(1.05) contrast(1.04);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 28, 48, 0.97) 0%,
    rgba(11, 28, 48, 0.92) 32%,
    rgba(11, 28, 48, 0.55) 56%,
    rgba(11, 28, 48, 0.28) 100%
  );
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 28, 48, 0.5), rgba(11, 28, 48, 0.12) 45%, transparent 70%);
}

.hero-inner {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-content {
  max-width: 580px;
}

.hero h1 {
  font-size: 36px;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero-lead {
  margin-top: 24px;
  max-width: 28rem;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-rule {
  margin-top: 24px;
  height: 2px;
  width: 64px;
  background: var(--orange);
}

.hero-desc {
  margin-top: 24px;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.hero .btn {
  margin-top: 32px;
}

/* ============================================================
   Stats bar
   ============================================================ */
.stats {
  background: var(--navy-deep);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
}

.stat .icon {
  width: 36px;
  height: 36px;
  color: var(--orange);
  stroke-width: 1.5;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0;
}

.stat-label {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ============================================================
   Section heading
   ============================================================ */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-heading h2 {
  font-size: 24px;
}

.section-heading .accent-rule {
  margin-top: 12px;
}

.on-navy {
  background: var(--navy);
}
.on-sand {
  background: var(--sand);
}
.on-sand-alt {
  background: var(--sand-alt);
}

/* ============================================================
   What we do
   ============================================================ */
.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
  row-gap: 48px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.service .icon {
  width: 44px;
  height: 44px;
  color: var(--orange);
  stroke-width: 1.5;
}

.service h3 {
  margin-top: 20px;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.2;
}

.service p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 28, 48, 0.7);
}

/* ============================================================
   Products
   ============================================================ */
.products-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-deep);
}

.product-frame img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.product p {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

.products-more {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.products-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--orange);
  transition: color 0.2s ease;
}

.products-more a:hover {
  color: var(--white);
}

/* ============================================================
   Why choose + founders
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.why h2,
.founders h2 {
  font-size: 24px;
  color: var(--navy);
  line-height: 1.2;
}

.why .accent-rule,
.founders .accent-rule {
  margin-top: 16px;
}

.why-body {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.why-text p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 28, 48, 0.75);
  margin: 0 0 16px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.why-list .icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.why-list span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(11, 28, 48, 0.85);
}

.founders {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founders-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.founder {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.founder img {
  height: 120px;
  width: 120px;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: contain;
  object-position: center center;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange), 0 10px 22px rgba(11, 28, 48, 0.16);
  background: transparent;
}

.founder-dan img {
  object-position: center center;
}

.founder h3 {
  font-size: 18px;
  color: var(--navy);
}

.founder p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 28, 48, 0.7);
}

/* ============================================================
   Process
   ============================================================ */
.process-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon-wrap {
  position: relative;
}

.step-num {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 10;
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--orange);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.step .icon {
  width: 48px;
  height: 48px;
  color: var(--white);
  stroke-width: 1.25;
}

.step h3 {
  margin-top: 20px;
  font-size: 16px;
  color: var(--white);
}

.step p {
  margin-top: 8px;
  max-width: 12rem;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.step-arrow {
  display: none;
  position: absolute;
  right: -20px;
  top: 24px;
  width: 20px;
  height: 20px;
  color: var(--orange);
}

/* ============================================================
   CTA + Footer
   ============================================================ */
.cta {
  background: var(--orange);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta-prompt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cta-prompt > .icon {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--white);
  stroke-width: 1.5;
}

.cta-prompt h2 {
  font-size: 20px;
  color: var(--white);
}

.cta-prompt p {
  margin: 8px 0 0;
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-contact svg.logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.cta-contact ul {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(11, 28, 48, 0.9);
}

.cta-contact .icon {
  width: 16px;
  height: 16px;
}

.cta-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: var(--navy-deep);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links .sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-body {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-prompt > .icon {
    display: block;
  }
  .footer-bottom-inner {
    flex-direction: row;
  }
  .hero h1 {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  .hero-inner {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .hero h1 {
    font-size: 60px;
  }
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .primary-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .stat {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat:last-child {
    border-right: 0;
  }

  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .service {
    align-items: flex-start;
    text-align: left;
  }
  .service + .service {
    border-left: 1px solid rgba(11, 28, 48, 0.1);
    padding-left: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }

  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .step-arrow {
    display: block;
  }

  .cta-inner {
    grid-template-columns: 1.4fr auto 1fr;
    gap: 48px;
  }
  .cta-contact {
    justify-content: flex-end;
  }
}

/* ============================================================
   Consult page
   ============================================================ */
.consult-head {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
}

.consult-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.consult-head h1 {
  margin-top: 12px;
  font-size: 34px;
  color: var(--white);
  line-height: 1.05;
}

.consult-rule {
  display: block;
  margin-top: 20px;
  height: 2px;
  width: 64px;
  background: var(--orange);
}

.consult-lead {
  margin: 20px 0 0;
  max-width: 40rem;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.consult-body {
  background: var(--sand);
  padding: 56px 0 72px;
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.consult-contact h2,
.consult-form-wrap h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 20px;
}

.consult-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--sand-alt);
  border-left: 4px solid var(--orange);
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.consult-card:hover {
  box-shadow: 0 8px 24px rgba(11, 28, 48, 0.1);
  transform: translateY(-1px);
}

.consult-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
}

.consult-card-icon .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.consult-card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.consult-card-value {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

/* Form */
.consult-form-wrap {
  background: var(--white);
  border: 1px solid var(--sand-alt);
  padding: 28px;
}

.consult-form .field {
  margin-bottom: 18px;
}

.consult-form .field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.consult-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--navy);
  background: var(--sand);
  border: 1px solid var(--sand-alt);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.consult-form input:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 96, 28, 0.15);
  background: var(--white);
}

.consult-form textarea {
  resize: vertical;
}

.consult-form .btn {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

.consult-form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.consult-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.consult-alert-success {
  background: #e8f6ee;
  color: #14532d;
  border-left: 4px solid #16a34a;
}

.consult-alert-error {
  background: #fdecea;
  color: #7f1d1d;
  border-left: 4px solid #dc2626;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .consult-head {
    padding: 72px 0 56px;
  }
  .consult-head h1 {
    font-size: 44px;
  }
  .consult-form .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .consult-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
  }
}

/* ============================================================
   Privacy + Terms
   ============================================================ */
.legal-head {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
}

.legal-head h1 {
  margin-top: 12px;
  font-size: 34px;
  color: var(--white);
  line-height: 1.05;
}

.legal-updated {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.legal-body {
  background: var(--sand);
  padding: 56px 0 72px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--sand-alt);
}

.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--navy);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(11, 28, 48, 0.8);
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 20px;
  list-style: disc;
}

.legal-content a {
  color: var(--orange);
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .legal-head {
    padding: 72px 0 56px;
  }
  .legal-head h1 {
    font-size: 44px;
  }
  .legal-content {
    padding: 48px 44px;
  }
}
