/*
Theme Name: Photonwebs
Theme URI: https://photonwebs.com
Author: Photonwebs
Author URI: https://photonwebs.com
Description: Lightweight dark marketing theme for Photonwebs — software engineering and digital acceleration. Optimized for PageSpeed / Core Web Vitals. No page builder, no jQuery.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
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: photonwebs
Tags: custom-menu, featured-images, one-column, custom-logo, translation-ready
*/

/* Photonwebs — premium dark marketing site */

:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: #161a22;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(34, 211, 238, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.25);
  --danger: #f87171;
  --success: #34d399;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #67e8f9;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0a0c10;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  color: var(--accent);
}

.logo-text {
  letter-spacing: -0.03em;
}

.logo-lockup {
  height: 36px;
  width: auto;
  max-width: min(220px, 55vw);
}

.logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo .custom-logo {
  height: 36px !important;
  width: auto !important;
  max-width: min(220px, 55vw) !important;
}

.logo-lockup--footer,
.logo-footer .custom-logo {
  height: 32px !important;
  width: auto !important;
  max-width: 200px !important;
}

.logo-footer {
  margin-bottom: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--accent);
  color: #082f36;
  box-shadow: 0 0 0 0 transparent;
}

.btn-primary:hover {
  background: #67e8f9;
  color: #082f36;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 20% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  max-width: 48rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Tabs / Verticals */
.verticals {
  background: linear-gradient(180deg, transparent, rgba(18, 21, 28, 0.6) 20%, transparent);
}

.tabs {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.tab-btn {
  flex: 1 1 auto;
  min-width: 8rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.25);
}

.tab-panels {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.tab-panel[hidden] {
  display: none;
}

.panel-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.panel-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.panel-copy p {
  margin: 0;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.975rem;
}

.feature-list span:last-child {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Method */
.method-diagram {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-flow {
  width: 100%;
  height: auto;
  display: none;
}

@media (min-width: 900px) {
  .method-flow {
    display: block;
  }
}

.method-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .method-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.method-steps li:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.method-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.method-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* Tech strip */
.stack {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.tech-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .tech-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .tech-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.tech-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.08);
}

.tech-icon {
  color: var(--accent);
}

.tech-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.contact-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-points li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.mono-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: 1rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.975rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--danger);
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.form-success {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.925rem;
}

.form-success strong {
  color: #6ee7b7;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: #07090c;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand .logo-text {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0 0 0.35rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

@media (max-width: 559px) {
  .footer-meta {
    text-align: left;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .method-steps li:hover,
  .tech-item:hover {
    transform: none;
  }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(10, 12, 16, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .header-cta {
    margin-top: 1rem;
    width: 100%;
  }
}

/* WP admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Fallback blog index */
.blog-fallback {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.blog-fallback h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.blog-fallback .posts-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-fallback .posts-list li {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.blog-fallback .posts-list a {
  color: var(--text);
  font-weight: 600;
}

.blog-fallback .posts-list a:hover {
  color: var(--accent);
}


/* Imagery panels & facility */
.panel-grid--media {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}

.panel-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.panel-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.method-steps--solo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.facility-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.facility-card--wide {
  grid-column: 1 / -1;
}

.facility-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.facility-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .panel-grid--media {
    grid-template-columns: 1fr;
  }
  .method-steps--solo {
    grid-template-columns: 1fr;
  }
}
