/*
Theme Name: IQ Corporation
Theme URI: https://www.iqcorporation.eu/
Author: PixelShark
Author URI: https://pixelshark.eu/
Description: Premium corporate theme for IQ Corporation, based on the custom HTML template (PL/EN), optimized for WordPress 6.9 and PHP 8.5. One-page layout with hero, brands portfolio, dual market map and contact section.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: iqcorporation
*/

/* Core styles imported from the HTML prototype */

/* Reset & Base */
:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  --color-primary: #005f9e;
  --color-primary-dark: #003d66;
  --color-accent: #0076b6;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-dark: #0f172a;
  
  --spacing-container: 1280px;
  --spacing-section: 7rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-section) 0;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-white {
  background-color: var(--color-bg-white);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: #fff;
}

.section-dark h2, .section-dark p, .section-dark label {
  color: #fff;
}

.section-dark .value {
    color: #fff;
}

/* Navbar & Menu */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 1.5rem 0;
  z-index: 2000;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.navbar.menu-open {
  background-color: transparent !important;
  box-shadow: none !important;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand img {
  transition: filter 0.3s ease;
  width: 200px;
  height: auto;
}

.navbar:not(.scrolled) .navbar-brand img {
  filter: brightness(0) invert(1); 
}

.navbar.scrolled .navbar-brand img {
  filter: none;
}

.navbar.menu-open .navbar-brand img {
  filter: brightness(0) invert(1) !important;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 2001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  background: #fff;
  border: 2px solid rgba(255,255,255,0.2);
}

.navbar.scrolled .lang-switch {
    border-color: #e2e8f0;
}

.lang-switch svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.4);
}

.lang-switch:hover {
  transform: scale(1.1);
}

.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2001;
  color: #fff;
  transition: color 0.3s ease;
}

.navbar.scrolled .menu-toggle-btn {
  color: var(--color-text-main);
}

.navbar.menu-open .menu-toggle-btn {
  color: #fff !important;
}

.menu-text {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hamburger-icon {
  width: 32px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.menu-toggle-btn:hover .hamburger-icon span:nth-child(2) {
  width: 60%;
  margin-left: auto;
}

.navbar.menu-open .hamburger-icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar.menu-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu-content nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-content a {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem); 
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, color 0.3s ease;
  transition-delay: var(--delay);
}

.menu-overlay.active .menu-content a {
  transform: translateY(0);
  opacity: 1;
}

.menu-content a:hover {
  color: #fff;
  transform: translateX(5px);
}

.menu-footer {
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  transition-delay: var(--delay);
}

.menu-overlay.active .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  padding-top: 0;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url('hero.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.7) 40%,
    rgba(15, 23, 42, 0.9) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero .eyebrow {
  color: #93c5fd;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  background: rgba(0,0,0,0.4);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 2rem;
  display: inline-block;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 2.2rem;
  line-height: 1.1;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-size: 1.4rem;
  margin-bottom: 3.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.8rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(0, 95, 158, 0.4);
}

.btn-primary:hover {
  background-color: #004c80;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 95, 158, 0.3);
}

.btn-white-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.btn-white-outline:hover {
  background-color: #fff;
  color: var(--color-text-main);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #fff;
  color: var(--color-bg-dark);
}

.btn-white:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

/* Stats */
.grid-2-1 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.stat-item {
  background: #fff;
  padding: 2.5rem;
  border-left: 5px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Portfolio Cards */
.section-header {
  margin-bottom: 5rem;
  max-width: 800px;
}

.section-subtitle {
  font-size: 1.25rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

a.portfolio-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 3rem 2.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

a.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 95, 158, 0.2);
  background: #fff;
}

.card-top {
  margin-bottom: 1.5rem;
}

.card-line {
  width: 50px;
  height: 4px;
  background-color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: width 0.3s ease;
}

a.portfolio-card:hover .card-line {
  width: 100px;
  background-color: var(--color-accent);
}

.portfolio-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.card-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.card-desc {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
  flex-grow: 1;
}

a.portfolio-card::after {
  content: '→';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

a.portfolio-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Map Section (Dual View - Connected) */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.feature-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-primary);
}

.feature-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-text-main);
}

.dual-map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-instance {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  z-index: 1;
  position: relative;
  border-radius: 0;
}

#map-uk {
    border-right: 1px solid rgba(0,0,0,0.05);
}

.leaflet-control-attribution {
  display: none !important;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cd-item .label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.6rem;
}

.cd-item .label::before,
.cd-item .label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.0),
    rgba(148, 163, 184, 0.5)
  );
}

.cd-item .label::after {
  background: linear-gradient(
    to left,
    rgba(148, 163, 184, 0.0),
    rgba(148, 163, 184, 0.5)
  );
}

.cd-item .value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}

.corporate-form {
  background: rgba(255,255,255,0.03);
  padding: 3.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.form-check {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  appearance: none;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.form-check input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: #fff;
  padding: 4rem 0 0;
  border-top: 1px solid #f1f5f9;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
}

.legal-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-main);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.legal-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.legal-col a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}

.legal-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.heart-icon {
  color: #ef4444;
  font-size: 1rem;
}

.footer-credit a {
  font-weight: 600;
  color: var(--color-text-main);
  border-bottom: 1px dotted currentColor;
}

.footer-credit a:hover {
  color: var(--color-primary);
  border-bottom-style: solid;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
  html { font-size: 15px; }
  
  .hero-inner, .grid-2-1, .grid-split, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
    background-position: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn { width: 100%; }
  
  .navbar-brand img { width: 160px; }
  
  .menu-content a { font-size: 1.8rem; }
  
  .corporate-form { padding: 2rem 1.5rem; }
  
  .dual-map-container {
    grid-template-columns: 1fr;
    height: 600px;
  }

  /* Reset separate border on mobile */
  #map-uk {
      border-right: none;
      border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

