/*
Theme Name: 7 Kings
Theme URI: https://7kings.hr
Author: 7 Kings
Author URI: https://7kings.hr
Description: A commitment to innovation and digitalization. Custom WordPress theme with Three.js and GSAP animations.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sevenkings
*/

/* ═══════════════════════════════════════════════
   WARM FOG GOLD — Global Styles
   ═══════════════════════════════════════════════ */

:root {
  --gold: #B8963E;
  --gold-light: #D4B265;
  --gold-dark: #8C6E26;
  --gold-muted: #C2A45A;
  --gold-glow: rgba(184, 150, 62, 0.08);
  --cream: #F6F3EE;
  --cream-warm: #EFEBE4;
  --cream-deep: #E8E3DA;
  --ink: #1C1914;
  --ink-soft: #2E2923;
  --text: #3A352D;
  --text-mid: #6B6358;
  --text-light: #9B9285;
  --border: rgba(184, 150, 62, 0.12);
  --border-strong: rgba(184, 150, 62, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold-dark) var(--cream-deep); }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* ─── Three.js Canvas ─── */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
}

.grain-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 150, 62, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(246, 243, 238, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-img {
  max-width: 50px;
  height: auto;
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

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

.nav-cta-btn {
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-dark);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta-btn:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Hero ─── */
.hero {
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 150, 62, 0.04);
  opacity: 0;
}

.hero-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.hero-logo-img {
  max-width: 200px;
  height: auto;
}

.hero-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
  opacity: 0;
}

.hero-sub {
  font-size: clamp(0.8rem, 1.3vw, 0.98rem);
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
}

.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold-muted), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Value Proposition ─── */
.value-section {
  flex-direction: column;
  padding: 5rem 2rem;
  gap: 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, var(--cream-warm) 10%, var(--cream-warm) 90%, transparent 100%);
}

.value-section h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  max-width: 700px;
  line-height: 1.3;
  color: var(--ink-soft);
  opacity: 0;
}

.value-section h2 strong {
  font-weight: 600;
  color: var(--ink);
}

.value-desc {
  max-width: 560px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  opacity: 0;
}

.value-pillars {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.value-pillar { text-align: center; opacity: 0; }

.value-pillar .vp-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.value-pillar .vp-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* ─── Services Grid ─── */
.services-section {
  flex-direction: column;
  padding: 5rem 2rem;
  gap: 3rem;
  min-height: auto;
}

.section-header {
  text-align: center;
  max-width: 650px;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  opacity: 0;
}

.section-header p {
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.88rem;
  opacity: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1050px;
  width: 100%;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.service-card {
  padding: 2.25rem 1.75rem;
  background: var(--cream);
  opacity: 0;
  transform: translateY(30px);
  transition: background 0.3s;
}

.service-card:hover { background: var(--cream-warm); }

.service-card .service-icon {
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(184, 150, 62, 0.06);
  border: 1px solid rgba(184, 150, 62, 0.1);
  color: var(--gold);
  font-size: 1rem;
}

.service-card .service-icon i {
  font-size: 1rem;
  color: var(--gold);
}

.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ─── Why Cards ─── */
.why-section {
  flex-direction: column;
  padding: 5rem 2rem;
  gap: 3rem;
  min-height: auto;
  background: linear-gradient(180deg, transparent 0%, var(--cream-warm) 10%, var(--cream-warm) 90%, transparent 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  width: 100%;
}

.why-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(246, 243, 238, 0.7);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.why-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.why-card p {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ─── CTA Section ─── */
.cta-section {
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding: 5rem 2rem;
  min-height: 50vh;
}

.cta-section h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--ink-soft);
  opacity: 0;
}

.cta-section h2 span { color: var(--gold); font-weight: 600; }

.cta-sub {
  max-width: 460px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  opacity: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.25rem;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  background: transparent;
  color: var(--gold-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  opacity: 0;
}

.cta-btn:hover {
  background: var(--gold);
  color: white;
}

.cta-btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.cta-btn:hover svg { transform: translateX(4px); }

/* ─── Page Content (Contact, References, etc.) ─── */
.page-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--ink);
}

.page-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--ink-soft);
}

.page-content p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-content a { color: var(--gold-dark); border-bottom: 1px solid var(--border); }
.page-content a:hover { color: var(--gold); border-color: var(--gold); }

/* ─── Contact Form (CF7 / generic) ─── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(239, 235, 228, 0.5);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  background: rgba(239, 235, 228, 0.8);
}

.wpcf7 input[type="submit"],
.contact-form button {
  padding: 0.85rem 2.25rem;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  background: transparent;
  color: var(--gold-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
}

.wpcf7 input[type="submit"]:hover,
.contact-form button:hover {
  background: var(--gold);
  color: white;
}

/* ─── CF7 Response & Spinner Fix ─── */
.wpcf7 form.submitting .wpcf7-spinner {
  visibility: visible !important;
  display: inline-block !important;
}

.wpcf7-spinner { margin: 0 0 0 1rem; vertical-align: middle; }

.wpcf7 .wpcf7-response-output {
  display: block !important;
  visibility: visible !important;
  margin: 1.5rem 0 0;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border) !important;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-mid);
  background: var(--cream-warm);
}

.wpcf7 .wpcf7-response-output:empty { display: none !important; }

.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(34, 120, 60, 0.3) !important;
  color: #1A6B35;
  background: rgba(34, 120, 60, 0.06);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: rgba(180, 50, 50, 0.3) !important;
  color: #9B2C2C;
  background: rgba(180, 50, 50, 0.05);
}

.wpcf7 form.failed .wpcf7-response-output {
  border-color: rgba(180, 130, 20, 0.3) !important;
  color: #8C6E26;
  background: rgba(180, 130, 20, 0.05);
}

.wpcf7-not-valid-tip {
  color: #9B2C2C;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-form { display: flex; flex-direction: column; gap: 0.25rem; }
.wpcf7-form p { margin-bottom: 0.5rem; }

.wpcf7-form label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.wpcf7 form.sent .wpcf7-spinner,
.wpcf7 form.failed .wpcf7-spinner,
.wpcf7 form.invalid .wpcf7-spinner {
  visibility: hidden !important;
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.75rem;
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
}

.site-footer a { color: var(--gold-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .cursor-glow { display: none; }
  .site-nav { padding: 0.8rem 1.5rem; }
  .nav-menu { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(246, 243, 238, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .value-pillars { gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}
