/*
Theme Name: Del Cid Industries
Theme URI: https://delcidindustries.com
Author: Del Cid Industries
Description: A modern, minimal theme for Del Cid Industries: Home, About, and Contact pages with a Cloudflare Turnstile-protected contact form.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: All rights reserved
Text Domain: delcid
*/

/* Del Cid Industries — site styles
   Palette: blue #1E4FD8, gray #8794A8, sky #3BA0FF, divider #BDC4CF */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("assets/fonts/Poppins-Light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("assets/fonts/Poppins-Medium.woff") format("woff"); }

:root {
  --blue: #1E4FD8;
  --blue-dark: #1840B0;
  --sky: #3BA0FF;
  --gray: #8794A8;
  --line: #BDC4CF;
  --line-soft: #E3E7EE;
  --ink: #0B1530;
  --text: #354052;
  --muted: #5B6577;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }

h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--muted); max-width: 34rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 40px; width: auto; max-width: none; }
.site-footer .brand-logo { height: 36px; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.nav .nav-cta { color: var(--blue); border: 1px solid var(--blue); padding: 9px 20px; border-radius: var(--radius); }
.nav .nav-cta:hover { background: var(--blue); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 0.95rem; text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius); border: 1px solid var(--blue);
  background: var(--blue); color: #fff; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--gray); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); font-weight: 400; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-art { aspect-ratio: 1; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line-soft); overflow: hidden; }
.hero-art svg { width: 100%; height: 100%; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; color: var(--muted); font-weight: 300; font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 36px 32px 40px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card .icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 28px; }
.card p { margin-top: 12px; color: var(--muted); font-size: 0.97rem; }

/* Dark values band */
.band { background: var(--ink); color: #C5CEDD; padding: clamp(64px, 9vw, 112px) 0; }
.band h2 { color: #fff; max-width: 28rem; }
.band .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.values { display: grid; gap: 0; }
.value { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.value:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.value .num { color: var(--sky); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; padding-top: 4px; }
.value h3 { color: #fff; }
.value p { margin-top: 6px; font-size: 0.97rem; color: #AEB9CC; }

/* Audience */
.audience { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip { border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 9px 20px; font-size: 0.92rem; background: #fff; }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 30rem; margin-inline: auto; }
.cta p { margin: 18px auto 36px; max-width: 30rem; color: var(--muted); font-weight: 300; font-size: 1.1rem; }

/* Page header (About / Contact) */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18ch; }
.page-head .lead { margin-top: 24px; }

/* Placeholders for future photos */
.ph {
  position: relative; border-radius: 12px; border: 1px dashed var(--line); background:
    repeating-linear-gradient(135deg, rgba(135,148,168,0.07) 0 12px, transparent 12px 24px), var(--bg-soft);
  display: grid; place-items: center; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.ph span { background: #fff; border: 1px solid var(--line-soft); padding: 6px 14px; border-radius: 999px; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-wide { aspect-ratio: 16 / 9; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.prose p + p { margin-top: 20px; }
.prose p { max-width: 34rem; }
.prose h2 { margin-bottom: 24px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-soft); }
.pillar { padding: 36px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-soft); }
.pillar .k { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.pillar h3 { margin-top: 14px; }
.pillar p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 7vw, 104px); align-items: start; }
.form { display: grid; gap: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: var(--gray); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,160,255,0.28); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.notice { border-radius: var(--radius); padding: 14px 18px; font-size: 0.95rem; border: 1px solid; }
.notice-ok { background: #EEF6FF; border-color: var(--sky); color: #0B3A75; }
.notice-err { background: #FFF3F2; border-color: #E5837C; color: #7A1F18; }

.aside h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.aside .block { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.aside .block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.aside p, .aside a { display: block; margin-top: 10px; font-size: 1.05rem; color: var(--ink); }
.aside p { color: var(--muted); font-size: 0.97rem; }
.aside a { color: var(--blue); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: var(--text); text-decoration: none; font-size: 0.93rem; }
.foot-links a:hover { color: var(--blue); }
.copy { width: 100%; font-size: 0.8rem; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .hero .wrap, .split, .band .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .cards, .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .site-header .wrap { min-height: 68px; }
  .brand-tag { display: none; }
  .brand-logo { height: 24px; }
  .site-footer .brand-logo { height: 28px; }
  .site-header .wrap { gap: 12px; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.88rem; }
  .nav .nav-cta { padding: 7px 14px; }
  .row-2 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Photos (set in Appearance > Customize > Photos) */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.hero-art .photo { border-radius: 0; }
.hero-mark { display: grid; place-items: center; padding: 12%; }
.hero-mark img { width: 100%; height: auto; }
img.ph-tall { aspect-ratio: 4 / 5; }
img.ph-wide { aspect-ratio: 16 / 9; }
.ph:empty { border-style: solid; border-color: var(--line-soft); }

/* Contact form widget + status */
.cf-turnstile { min-height: 65px; }
#dci-status[hidden] { display: none; }
#form, #dci-status { scroll-margin-top: 110px; } /* keep clear of the sticky header */
#dci-status:focus { outline: none; }
.form-note a { color: inherit; }

/* Generic content pages */
.entry { max-width: 44rem; }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { margin-top: 1.6em; }
