/*
Theme Name: Seyo
Theme URI: https://seyo.sk
Author: Seyo Web Solutions
Description: Custom responsive theme for Seyo Web Solutions
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: seyo
*/

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --orange:        #E8763A;
  --orange-hover:  #CF6228;
  --navy:          #1C2D4A;
  --body-color:    #64748B;
  --blue:          #4A90D9;
  --blue-light:    #EFF6FF;
  --gray-light:    #F8FAFC;
  --white:         #FFFFFF;
  --shadow-card:   0 4px 24px rgba(28,45,74,0.08);
  --shadow-hero:   0 24px 64px rgba(28,45,74,0.18);
  --radius:        12px;
  --max-width:     1160px;
  --font:          'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body-color);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  border: none;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,118,58,0.35);
}

.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,118,58,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(28,45,74,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--body-color);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Navigation */
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-menu li a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.primary-menu li a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 3px 12px rgba(232,118,58,0.3);
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  padding: 80px 0 60px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Hero blob background */
.hero-blob {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  opacity: 0.55;
  z-index: 1;
}

.hero-content {}

.hero-heading {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  white-space: pre-line;
}

.hero-subheading {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
}

/* Hero mockups */
.hero-visual {
  position: relative;
  height: 420px;
  flex-shrink: 0;
}

.mockup-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: #fff;
}

.mockup-bar {
  height: 28px;
  background: #F1F3F6;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid #E2E8F0;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #FC5F5A; }
.mockup-dot:nth-child(2) { background: #FDBC40; }
.mockup-dot:nth-child(3) { background: #34C749; }

.mockup-url {
  flex: 1;
  height: 16px;
  background: #E2E8F0;
  border-radius: 4px;
  margin-left: 8px;
}

.mockup-body {
  width: 100%;
  overflow: hidden;
  background: #F8FAFC;
}

.mockup-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mockup-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #F8FAFC;
}

.ph-bar {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #E2E8F0 0%, #EFF6FF 100%);
}

.ph-bar.short { width: 60%; }
.ph-bar.medium { width: 80%; }
.ph-bar.accent { background: linear-gradient(90deg, var(--blue) 0%, #7BC0F0 100%); width: 40%; }
.ph-bar.orange-bar { background: linear-gradient(90deg, var(--orange) 0%, #F0A070 100%); width: 30%; height: 20px; border-radius: 6px; }

/* Back mockup */
.mockup-back {
  width: 75%;
  top: 0;
  right: 0;
  transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
  z-index: 1;
}

.mockup-back .mockup-body { height: 220px; }

/* Front mockup */
.mockup-front {
  width: 70%;
  bottom: 0;
  left: 0;
  transform: perspective(900px) rotateY(-4deg) rotateX(1deg);
  z-index: 2;
}

.mockup-front .mockup-body { height: 200px; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  background: var(--gray-light);
  padding: 72px 0;
  border-top: 1px solid rgba(28,45,74,0.06);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28,45,74,0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.7;
}

/* ============================================
   SECTION HEADER (shared)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--body-color);
}

/* ============================================
   REFERENCES SECTION
   ============================================ */
.references {
  padding: 80px 0;
  background: var(--white);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ref-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border: 2px dashed rgba(28,45,74,0.12);
  border-radius: var(--radius);
  color: var(--body-color);
  font-size: 15px;
}

/* ── Carousel wrapper ── */
.ref-carousel-outer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.ref-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Arrow buttons ── */
.ref-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F0;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  box-shadow: var(--shadow-card);
}

.ref-arrow:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.ref-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Individual card ── */
.ref-card {
  flex: 0 0 auto; /* width set by JS */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28,45,74,0.13);
}

.ref-card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ref-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gray-light);
}

.ref-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s;
}

.ref-card:hover .ref-card-image img {
  transform: scale(1.03);
}

.ref-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #EFF6FF 0%, #DDEEFF 100%);
}

.ref-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,45,74,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.ref-card:hover .ref-card-overlay { opacity: 1; }

.ref-card-visit {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}

.ref-card-body {
  padding: 16px 20px 18px;
}

.ref-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.ref-card-desc {
  font-size: 13px;
  color: var(--body-color);
  line-height: 1.5;
}

/* ── Dots ── */
.ref-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ref-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.ref-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .references { padding: 48px 0; }
  .ref-arrow { width: 36px; height: 36px; }
  .ref-carousel-track { gap: 16px; }
}

/* ============================================
   PROMO SECTION
   ============================================ */
.promo {
  background: linear-gradient(135deg, #1C2D4A 0%, #2A4470 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.promo::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(74,144,217,0.12);
  top: -100px;
  right: -80px;
}

.promo::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(232,118,58,0.08);
  bottom: -80px;
  left: -40px;
}

.promo-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.promo-heading {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.promo-text {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 36px;
}

.promo-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #111D2E;
  color: rgba(255,255,255,0.65);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo { margin-bottom: 16px; }

.footer-brand .logo-brand,
.footer-brand .logo-sub { color: var(--white); }

.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 260px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

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

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--orange); }

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,45,74,0.55);
  z-index: 200;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s;
}

.modal-backdrop.visible { opacity: 1; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s, transform 0.25s;
}

.modal-overlay.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(28,45,74,0.22);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-color);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #E2E8F0;
  color: var(--navy);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--body-color);
}

/* Form styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group .req {
  color: var(--orange);
}

.form-group .optional {
  font-weight: 400;
  color: var(--body-color);
  font-size: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0BBCC;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.btn-submit {
  width: 100%;
  text-align: center;
  padding: 15px;
  font-size: 15px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }

/* Success state */
.form-success {
  text-align: center;
  padding: 20px 0;
}

.form-success svg {
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--body-color);
}

/* Error message */
.form-error-msg {
  background: #FFF5F5;
  border: 1px solid #FEB2B2;
  border-radius: 8px;
  padding: 12px 16px;
  color: #C53030;
  font-size: 14px;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .modal-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .hamburger { display: flex; }

  .nav-wrap {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 99;
  }

  .nav-wrap.open {
    transform: translateY(0);
    opacity: 1;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .primary-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(28,45,74,0.06);
  }

  .primary-menu li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .nav-cta {
    display: block;
    text-align: center !important;
    margin-top: 16px;
    padding: 14px 22px !important;
    font-size: 15px !important;
  }

  /* Hero */
  .hero {
    padding: 48px 0 40px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    height: 280px;
    order: -1;
  }

  .hero-blob {
    width: 90%;
    right: -10%;
    top: 40%;
  }

  .hero-heading {
    font-size: 32px;
  }

  .hero-subheading {
    max-width: 100%;
  }

  /* Mockups on mobile */
  .mockup-back { width: 72%; }
  .mockup-front { width: 66%; }
  .mockup-back .mockup-body { height: 160px; }
  .mockup-front .mockup-body { height: 140px; }

  /* Features */
  .features { padding: 48px 0; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Promo */
  .promo { padding: 56px 0; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-tagline { max-width: 100%; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 28px; }
  .promo-heading { font-size: 26px; }
  .promo-actions { flex-direction: column; }
  .promo-actions .btn { width: 100%; text-align: center; }
}
