/*
Theme Name: Cali Blogs Corporate
Theme URI: https://caliblogs.com/
Author: Cali Blogs LLC
Description: Modern corporate presence for Cali Blogs LLC.
Version: 1.7.1-review
Requires at least: 7.1
Requires PHP: 8.2
Text Domain: caliblogs
*/

:root {
  --navy-950: #06122f;
  --navy-900: #0a1a43;
  --navy-800: #102557;
  --blue: #1268ff;
  --blue-bright: #1687ff;
  --violet: #6437f4;
  --purple: #7a27f5;
  --ink: #111b38;
  --slate: #53617d;
  --muted: #78849c;
  --line: #dfe5f2;
  --paper: #f6f8fd;
  --white: #ffffff;
  --max: 1160px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(18, 40, 99, 0.13);
  --gradient: linear-gradient(120deg, var(--blue) 0%, #2848ff 45%, var(--purple) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: var(--white); color: var(--navy-950); padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The approved PNG includes transparent canvas. These frames crop only that
   empty canvas; the logo pixels and proportions remain unchanged. */
.logo-crop { position: relative; display: block; overflow: hidden; aspect-ratio: 4.63 / 1; }
.logo-crop img {
  position: absolute; max-width: none; width: 113.7%; height: auto;
  left: -7.2%; top: -152.5%;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.91);
  border-bottom: 1px solid rgba(12, 35, 90, 0.08);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: block; width: 225px; flex: 0 0 auto; text-decoration: none; }
.logo-crop--header { width: 100%; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav-list a { color: #26365d; text-decoration: none; font-size: 0.9rem; font-weight: 680; }
.nav-list a:hover { color: var(--blue); }
.mobile-nav { display: none; color: var(--navy-950); }
.mobile-nav summary { cursor: pointer; font-weight: 760; list-style: none; padding: 10px 0 10px 18px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] .mobile-panel { display: grid; }
.mobile-panel {
  display: none; position: absolute; left: 0; right: 0; top: 78px;
  background: var(--white); border-top: 1px solid var(--line); padding: 14px 24px 22px;
  box-shadow: 0 18px 35px rgba(6, 18, 47, 0.12);
}
.mobile-panel a { color: var(--navy-950); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 680; }

.hero {
  position: relative; overflow: hidden; min-height: 670px; display: flex; align-items: center;
  background:
    radial-gradient(circle at 82% 26%, rgba(96, 55, 244, 0.13), transparent 27%),
    radial-gradient(circle at 74% 65%, rgba(18, 104, 255, 0.12), transparent 31%),
    linear-gradient(145deg, #ffffff 0%, #f6f8ff 64%, #eef2ff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(22, 75, 187, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 75, 187, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to right, transparent 5%, #000 58%, transparent 96%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr); align-items: center; gap: 46px; padding-block: 104px 112px; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow, .section-kicker {
  margin: 0 0 20px; color: var(--blue); font-size: 0.72rem; font-weight: 830;
  letter-spacing: 0.17em; text-transform: uppercase;
}
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(3.7rem, 7.2vw, 6.4rem); line-height: 0.96; letter-spacing: -0.065em; font-weight: 790; color: var(--navy-950); }
.hero-copy { max-width: 670px; margin: 30px 0 0; color: var(--slate); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.62; }
.hero .button-link { margin-top: 34px; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-visual img { width: min(100%, 520px); height: auto; filter: drop-shadow(0 28px 42px rgba(18, 40, 99, 0.16)); }
.section { padding-block: 112px; }
.section-grid, .prose-grid, .contact-simple { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 110px; align-items: start; }
.section h2, .content-section h2 { margin: 0; color: var(--navy-950); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.055em; }
.about { background: var(--white); }
.about-copy, .content-prose { max-width: 660px; color: var(--slate); font-size: 1.12rem; }
.about-copy p, .content-prose p { margin: 0 0 23px; }
.text-link { display: inline-block; margin-top: 13px; color: var(--navy-900); font-weight: 760; text-decoration: none; border-bottom: 2px solid rgba(18, 104, 255, 0.4); padding-bottom: 3px; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.button-link { display: inline-flex; align-items: center; gap: 10px; background: var(--navy-950); color: var(--white); text-decoration: none; font-weight: 760; border-radius: 999px; padding: 14px 23px; box-shadow: 0 12px 24px rgba(6, 18, 47, 0.16); }
.button-link:hover { background: var(--blue); }
.button-link--light { background: var(--white); color: var(--navy-950); }
.button-link--light:hover { background: #eef3ff; color: var(--blue); }

.projects { background: var(--paper); border-block: 1px solid var(--line); }
.projects-header { max-width: 790px; margin-bottom: 50px; }
.project-feature {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: 64px;
  min-height: 360px; padding: 50px; border-radius: var(--radius); color: var(--white);
  background: linear-gradient(130deg, var(--navy-950) 0%, var(--navy-800) 70%, #192865 100%);
  box-shadow: var(--shadow);
}
.project-feature::after { content: ""; position: absolute; width: 360px; height: 360px; right: -130px; top: -190px; border-radius: 50%; background: var(--gradient); opacity: 0.65; filter: blur(2px); }
.project-feature-heading, .project-feature-copy { position: relative; z-index: 1; }
.project-brand-title { margin: 18px 0 0; line-height: 0; }
.project-brand-title img { display: block; width: min(100%, 380px); height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18)); }
.card-label { color: #8fb8ff; font-size: 0.7rem; font-weight: 820; text-transform: uppercase; letter-spacing: 0.16em; }
.project-feature p { max-width: 540px; margin: 0; color: #c9d4eb; font-size: 1.09rem; }
.project-feature p + p { margin-top: 16px; }
.project-link { display: inline-block; margin-top: 28px; color: var(--white); font-weight: 760; text-decoration: none; border-bottom: 2px solid #7a8fff; padding-bottom: 4px; }
.project-link:hover { color: #a9c7ff; }
.project-feature--slytots { background: linear-gradient(125deg, #e9f3ed, #eaf0fa); color: var(--navy-950); }
.project-feature--slytots::after { opacity: .12; }
.project-feature--slytots .card-label { color: #91402f; }
.project-feature--slytots .project-brand-title img { width: min(100%, 285px); filter: none; }
.project-feature--slytots p { color: #354b61; }
.project-status-note { font-size: .92rem !important; }
.project-secondary { display: grid; grid-template-columns: .88fr 1.12fr; gap: 64px; align-items: center; margin-top: 24px; padding: 34px 50px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.project-secondary .card-label { color: var(--slate); }
.project-secondary .project-brand-title { width: fit-content; padding: 12px 18px; border-radius: 12px; background: var(--navy-950); }
.project-secondary .project-brand-title img { width: min(100%, 210px); filter: none; }
.project-secondary p { color: var(--slate); margin: 0; }
.development-note { display: flex; align-items: flex-start; gap: 18px; max-width: 760px; margin-top: 34px; }
.development-dot { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 7px rgba(18, 104, 255, 0.08); }
.development-note strong { color: var(--navy-950); font-size: 1.03rem; }
.development-note p { margin: 4px 0 0; color: var(--slate); }
.projects-more { margin-top: 28px; }

.contact { color: var(--white); background: linear-gradient(120deg, var(--navy-950) 0%, #102456 70%, #142869 100%); }
.contact .section-kicker { color: #91b9ff; }
.contact h2 { color: var(--white); }
.contact-copy { max-width: 620px; }
.contact-copy p { margin: 0 0 28px; color: #cbd5e9; font-size: 1.13rem; }

.site-footer { background: #040c21; color: #99a6c2; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 42px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { color: var(--white); font-weight: 760; }
.footer-tagline { margin: 6px 0 0; font-size: 0.86rem; }
.footer-meta { text-align: right; font-size: 0.83rem; }
.footer-meta a { color: var(--white); text-underline-offset: 4px; }
.footer-meta p { margin: 9px 0 0; }
.footer-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; }

.content-page { min-height: 70vh; background: var(--white); }
.content-hero { position: relative; overflow: hidden; padding-block: 104px 112px; background: var(--paper); border-bottom: 1px solid var(--line); }
.content-hero::after { content: ""; position: absolute; width: 440px; height: 440px; right: -160px; top: -260px; border-radius: 50%; background: var(--gradient); opacity: 0.12; }
.content-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.85fr; gap: 90px; align-items: end; }
.content-hero h1 { margin: 0; color: var(--navy-950); font-size: clamp(3.25rem, 7vw, 6.25rem); line-height: 0.96; letter-spacing: -0.065em; }
.page-intro { margin: 0; color: var(--slate); font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.6; }
.content-section { background: var(--white); }
.project-detail-card { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 78px; padding: 54px; border-radius: var(--radius); background: linear-gradient(130deg, var(--navy-950), var(--navy-800)); color: var(--white); box-shadow: var(--shadow); }
.project-detail-card .project-brand-title { margin-bottom: 24px; }
.project-detail-card h3 { margin: 0; color: #bac8e4; font-size: 1.12rem; font-weight: 560; line-height: 1.5; }
.project-detail-card p { margin: 0; color: #c5d0e6; font-size: 1.06rem; }
.development-note--page { margin-top: 40px; }
.contact-simple h2 { font-size: clamp(2.8rem, 5vw, 4.7rem); }
.contact-details { max-width: 660px; color: var(--slate); font-size: 1.08rem; }
.contact-details > p:first-child { margin-top: 0; }
.contact-data-note { margin: 22px 0 0; padding: 16px 18px; border: 2px solid #b4754d; border-radius: 12px; background: #fff5e9; color: var(--navy-950); font-size: 0.96rem; }
.contact-text-challenge { border: 1px solid #cad5e2; border-radius: 12px; padding: 16px; }
.contact-text-challenge legend { font-weight: 700; }
.contact-text-challenge p { margin: 4px 0 12px; }
.contact-result { margin-top: 18px; font-weight: 700; }
#caliblogs-contact-form { scroll-margin-top: 24px; }
.contact-form { display: grid; gap: 20px; margin: 34px 0 38px; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { color: var(--navy-950); font-size: 0.91rem; font-weight: 740; }
.contact-field label span { color: var(--muted); font-weight: 560; }
.contact-field input, .contact-field select, .contact-field textarea {
  width: 100%; min-width: 0; border: 1px solid #b8c4dc; border-radius: 12px;
  background: var(--white); color: var(--navy-950); padding: 13px 15px;
  font: inherit; line-height: 1.5; box-shadow: inset 0 1px 2px rgba(6, 18, 47, 0.03);
}
.contact-field input:hover, .contact-field select:hover, .contact-field textarea:hover { border-color: #8295bd; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(18, 104, 255, 0.13); }
.contact-field textarea { min-height: 180px; resize: vertical; }
.contact-form button, .contact-success-modal button {
  width: fit-content; border: 0; border-radius: 999px; background: var(--navy-950); color: var(--white);
  padding: 14px 22px; font: inherit; font-weight: 760; cursor: pointer;
}
.contact-form button:hover, .contact-success-modal button:hover { background: var(--blue); }
.contact-form button:disabled { cursor: wait; opacity: 0.65; }
#contact-status { min-height: 1.6em; margin: -6px 0 0; color: var(--blue); font-size: 0.93rem; }
#contact-status[data-state="error"] { color: #a12d42; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.contact-success-modal { width: min(92vw, 480px); border: 1px solid #cfd8ea; border-radius: 22px; padding: 38px; background: var(--white); color: var(--ink); text-align: center; box-shadow: 0 28px 90px rgba(6, 18, 47, 0.28); }
.contact-success-modal::backdrop { background: rgba(3, 10, 30, 0.72); backdrop-filter: blur(3px); }
.contact-success-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: var(--gradient); color: var(--white); font-size: 1.65rem; font-weight: 800; }
.contact-success-modal h2 { margin: 0 0 9px; color: var(--navy-950); font-size: 2rem; }
.contact-success-modal p { margin: 0 0 26px; color: var(--slate); }
.contact-unavailable { margin: 30px 0; padding: 18px 20px; border-radius: 12px; background: #f1f5ff; color: var(--navy-900); font-weight: 680; }
.contact-secondary { color: var(--muted); font-size: 0.96rem; }
.contact-secondary a { color: var(--blue); font-weight: 700; }

.privacy-page { min-height: 70vh; background: var(--white); padding-block: 96px 118px; }
.privacy-wrap { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.privacy-page h1 { margin: 0 0 16px; color: var(--navy-950); font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -0.06em; }
.effective { margin-bottom: 52px; color: var(--blue); font-weight: 720; }
.privacy-content { color: var(--slate); }
.privacy-content h2 { margin: 43px 0 10px; color: var(--navy-950); font-size: 1.45rem; letter-spacing: -0.02em; }
.privacy-content p { margin: 0 0 18px; }
.privacy-content ul { margin: 10px 0 24px; padding-left: 22px; }
.privacy-content li { margin-bottom: 6px; }
.policy-review-note { margin: 0 0 32px; padding: 12px 16px; background: #f9f1df; border-left: 4px solid #ae7432; color: #4d3a20; font-weight: 650; }
.policy-directory a, .privacy-content a { color: #104a9e; text-underline-offset: 3px; }
.policy-directory li { margin-bottom: 14px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; padding-block: 86px 92px; }
  .hero-content { max-width: 730px; }
  .hero-visual { justify-self: center; width: min(76%, 540px); }
  .section-grid, .prose-grid, .contact-simple, .content-hero-grid, .project-detail-card { grid-template-columns: 1fr; gap: 44px; }
  .project-feature, .project-secondary { grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 70px; gap: 18px; }
  .brand { width: 178px; }
  .mobile-panel { top: 70px; }
  .hero-inner { gap: 42px; padding-block: 68px 76px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-copy { margin-top: 24px; }
  .hero-visual { width: min(90%, 440px); }
  .section { padding-block: 78px; }
  .projects-header { margin-bottom: 34px; }
  .project-feature, .project-secondary { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding: 32px 28px 36px; }
  .project-brand-title img { width: min(86%, 340px); }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { text-align: left; }
  .footer-nav { justify-content: flex-start; }
  .content-hero { padding-block: 74px 82px; }
  .project-detail-card { padding: 32px 28px; }
  .contact-form { gap: 17px; margin-top: 28px; }
  .contact-field input, .contact-field select, .contact-field textarea { font-size: 16px; }
  .contact-success-modal { padding: 30px 22px; }
  .privacy-page { padding-block: 76px 94px; }
  .privacy-wrap { width: calc(100% - 32px); }
}

@media (max-width: 340px) {
  .container, .privacy-wrap { width: calc(100% - 24px); }
  .brand { width: 157px; }
  .header-inner { gap: 12px; }
  .mobile-nav summary { padding-left: 8px; }
  .hero h1 { font-size: 2.82rem; }
  .section h2, .content-section h2 { font-size: 2.3rem; }
  .project-feature, .project-detail-card { padding-inline: 22px; }
  .contact-success-modal h2 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
