/*
Theme Name: Archiva Secure AI
Theme URI: https://archiva-secure.ai
Author: Archiva Team
Author URI: https://archiva-secure.ai
Description: Custom WordPress theme for Archiva Secure AI - AI-powered smart mobile shelving systems. Features full ACF integration for easy content management of all homepage sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: archiva
Tags: custom-theme, acf, corporate, business, responsive
Requires at least: 5.8
Requires PHP: 7.4
*/

/* ============================
   RESET & BASE
   ============================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, 'Helvetica Neue', Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a1a;
  background: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

button {
  font-family: inherit;
}

/* ============================
   CSS VARIABLES
   ============================ */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F7;
  --bg-warm: #F0EBE3;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: #C84B31;
  --accent-hover: #B04028;
  --accent-light: rgba(200,75,49,0.08);
  --border-color: #e5e5e5;
  --pill-bg: #EEEEEE;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-pill: 100px;
}

/* ============================
   LAYOUT HELPERS
   ============================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section-padding {
  padding: 120px 5vw;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 5vw;
  }
}

/* ============================
   TYPOGRAPHY
   ============================ */

.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.section-heading {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================
   BUTTONS
   ============================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--pill-bg);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* ============================
   NAVIGATION
   ============================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.current {
  color: var(--accent);
}

.nav-menu a.current {
  font-weight: 600;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 5vw;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
}

/* ============================
   HERO SECTION
   ============================ */

.hero-section {
  background: #fff;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero-content {
  padding: 40px 0;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image-col {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-bg {
  position: absolute;
  top: 40px;
  right: -5vw;
  bottom: 40px;
  left: 20px;
  background: #E8B4A8;
  border-radius: 16px;
  overflow: hidden;
}

.hero-image-bg .bg-text {
  position: absolute;
  bottom: -20px;
  left: -10px;
  right: 0;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  color: rgba(255,255,255,0.35);
  line-height: 0.85;
  letter-spacing: -0.04em;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
}

.hero-image {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.hero-stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 5vw 40px;
  width: 100%;
}

.hero-stats p {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
}

.hero-stats strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-image-col {
    min-height: 300px;
    order: -1;
  }
  .hero-image-bg {
    top: 20px;
    right: -3vw;
    bottom: 20px;
    left: 10px;
  }
}

/* ============================
   PLATFORM SECTION
   ============================ */

.platform-section {
  background: #fff;
}

.platform-header {
  text-align: center;
  margin-bottom: 72px;
}

.platform-header .section-label {
  margin-bottom: 16px;
}

.platform-header .section-heading {
  margin-bottom: 20px;
}

.platform-header .section-body {
  max-width: 560px;
  margin: 0 auto;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 32px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  align-self: start;
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.platform-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.platform-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.platform-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================
   ECOSYSTEM SECTION
   ============================ */

.ecosystem-section {
  background: var(--bg-secondary);
}

.ecosystem-header {
  text-align: center;
  margin-bottom: 72px;
}

.ecosystem-header .section-label {
  margin-bottom: 16px;
}

.ecosystem-header .section-heading {
  margin-bottom: 20px;
}

.ecosystem-header .section-body {
  max-width: 560px;
  margin: 0 auto;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.ecosystem-item {
  background: var(--bg-secondary);
  padding: 36px 32px;
  transition: background 0.25s ease;
  cursor: default;
}

.ecosystem-item:hover {
  background: #fff;
}

.ecosystem-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ecosystem-item__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.ecosystem-item__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.ecosystem-item__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 44px;
}

/* ============================
   ABOUT SECTION
   ============================ */

.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content .section-heading {
  margin-bottom: 24px;
}

.about-content .section-body {
  margin-bottom: 16px;
}

.about-image-wrap {
  position: relative;
}

.about-image-bg {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: #E8B4A8;
  border-radius: 16px;
  z-index: 0;
}

.about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================
   INDUSTRIES SECTION
   ============================ */

.industries-section {
  background: var(--bg-secondary);
}

.industries-header {
  text-align: center;
  margin-bottom: 72px;
}

.industries-header .section-label {
  margin-bottom: 16px;
}

.industries-header .section-heading {
  margin-bottom: 16px;
}

.industries-header .section-body {
  max-width: 480px;
  margin: 0 auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.industry-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.industry-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ============================
   CONTACT SECTION
   ============================ */

.contact-section {
  background: #fff;
  padding-top: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info .section-label {
  margin-bottom: 16px;
}

.contact-info .section-heading {
  margin-bottom: 24px;
}

.contact-info .section-body {
  margin-bottom: 40px;
}

.contact-detail {
  margin-bottom: 24px;
}

.contact-detail__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-detail__value {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-detail__value--accent {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 20px;
}

.contact-socials a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.contact-socials a:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 48px;
}

.form-group {
  margin-bottom: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

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

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

.form-submit {
  margin-top: 8px;
}

/* Footer */
.site-footer {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 5vw;
}

.footer-inner {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.back-to-top {
  font-size: 14px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}

.back-to-top:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form-wrap {
    padding: 32px;
  }
}

/* ============================
   WORDPRESS ADMIN BAR FIX
   ============================ */

.admin-bar .site-nav {
  top: 32px;
}

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

/* ============================
   ACF NOTICE (backend helper)
   ============================ */

.acf-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ACF block editor compatibility */
.wp-block-acf {
  max-width: 100%;
}

/* Gutenberg alignments */
.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
