/*
Theme Name: Tiktin
Theme URI: https://tiktin.co.il
Author: Tiktin Web
Author URI: https://tiktin.co.il
Description: תבנית מותאמת אישית לאתר טיקטין חשמל - תשתיות חשמל ותאורה
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiktin
Tags: rtl-language, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments
*/

/* ============================================================
   TABLE OF CONTENTS
   1. Reset & Base
   2. Typography
   3. Layout
   4. Header & Navigation
   5. Hero Section
   6. About Section
   7. Services Section
   8. Team Section
   9. Projects Section
   10. Clients Section
   11. Testimonials Section
   12. Contact Section
   13. Footer
   14. Buttons & Forms
   15. Utilities
   16. Responsive
   ============================================================ */

/* ============================================================
   1. RESET & BASE
   ============================================================ */

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

:root {
  --color-primary:    #003087;
  --color-primary-dark: #001f5c;
  --color-accent:     #ff6600;
  --color-accent-dark: #e05500;
  --color-light:      #f4f7fb;
  --color-white:      #ffffff;
  --color-text:       #222222;
  --color-text-light: #555555;
  --color-border:     #dde3ee;
  --color-gray:       #f0f2f7;

  --font-base: 'Heebo', Arial, sans-serif;
  --transition: 0.28s ease;
  --shadow-sm: 0 2px 8px rgba(0,48,135,0.08);
  --shadow-md: 0 6px 24px rgba(0,48,135,0.13);
  --shadow-lg: 0 12px 40px rgba(0,48,135,0.18);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --header-h: 78px;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Section headings */
.section-title {
  text-align: center;
  margin-bottom: 0.4em;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.section {
  padding: 90px 0;
}

.section--gray {
  background: var(--color-gray);
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark .section-subtitle {
  color: rgba(255,255,255,0.75);
}

.section--dark .section-title::after {
  background: var(--color-accent);
}

.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */

#site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  height: var(--header-h);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

#site-header.scrolled {
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  height: 64px;
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.site-logo:hover .site-logo__icon {
  transform: scale(1.07);
}

.site-logo__icon svg {
  width: 26px;
  height: 26px;
  fill: var(--color-white);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.site-logo__tagline {
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-weight: 400;
  transition: color var(--transition);
}

#site-header.scrolled .site-logo__name,
#site-header.scrolled .site-logo__tagline {
  color: var(--color-white);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--color-accent);
  background: rgba(255,102,0,0.06);
}

#site-header.scrolled .main-nav ul li a {
  color: rgba(255,255,255,0.88);
}

#site-header.scrolled .main-nav ul li a:hover,
#site-header.scrolled .main-nav ul li.current-menu-item a {
  color: var(--color-accent);
  background: rgba(255,255,255,0.1);
}

/* CTA in nav */
.nav-cta {
  margin-right: 16px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover { background: var(--color-gray); }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

#site-header.scrolled .nav-toggle span { background: var(--color-white); }

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   5. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* Replace with: background-image: url('images/hero-bg.jpg'); */
  background: linear-gradient(135deg, #001a4d 0%, #003087 40%, #0055cc 100%);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.55) 0%,
    rgba(0,48,135,0.75) 60%,
    rgba(0,10,50,0.9) 100%
  );
}

/* Animated electric lines decoration */
.hero__decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__decoration::before,
.hero__decoration::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.hero__decoration::before {
  width: 700px;
  height: 700px;
  border: 2px solid var(--color-accent);
  top: -200px;
  left: -150px;
}

.hero__decoration::after {
  width: 500px;
  height: 500px;
  border: 2px solid var(--color-white);
  bottom: -150px;
  right: -100px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,102,0,0.2);
  border: 1px solid rgba(255,102,0,0.4);
  color: #ffaa66;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ============================================================
   6. ABOUT SECTION
   ============================================================ */

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

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-wrap img,
.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  /* Replace with: <img src="<?php echo get_template_directory_uri(); ?>/images/about.jpg" alt="..."> */
}

.about__image-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0055cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.25;
  fill: var(--color-white);
}

.about__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about__badge-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about__badge-text {
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 2px;
}

.about__content .section-title {
  text-align: right;
}

.about__content .section-title::after {
  margin: 0.5rem 0 0;
}

.about__lead {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about__features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about__feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,102,0,0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1rem;
}

.about__feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.about__feature-text span {
  font-size: 0.87rem;
  color: var(--color-text-light);
}

/* ============================================================
   7. SERVICES SECTION
   ============================================================ */

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

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: height var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0055cc 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform var(--transition);
}

.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--color-primary);
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   8. TEAM SECTION
   ============================================================ */

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

.team-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--color-border);
  transition: border-color var(--transition);
  /* Replace with: <img src="..." alt="שם"> */
}

.team-card:hover .team-card__photo {
  border-color: var(--color-accent);
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0055cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
}

.team-card__name {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.83rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card__bio {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.8rem;
  line-height: 1.6;
}

/* ============================================================
   9. PROJECTS SECTION
   ============================================================ */

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

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  /* Replace image placeholder with actual project photos */
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #002060 0%, var(--color-primary) 60%, #0055cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__placeholder svg {
  width: 60px;
  height: 60px;
  fill: rgba(255,255,255,0.15);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,20,80,0.95) 0%,
    rgba(0,48,135,0.5) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background var(--transition);
}

.project-card:hover .project-card__img,
.project-card:hover .project-card__placeholder {
  transform: scale(1.06);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0,20,80,0.98) 0%,
    rgba(0,48,135,0.7) 50%,
    rgba(255,102,0,0.15) 100%
  );
}

.project-card__category {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-card__title {
  font-size: 1.05rem;
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.3;
}

.project-card__location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* Featured project (large) */
.project-card--featured {
  grid-column: span 2;
  grid-row: span 1;
}

/* ============================================================
   10. CLIENTS SECTION
   ============================================================ */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 3rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  height: 90px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  filter: grayscale(100%);
  opacity: 0.65;
}

.client-logo:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

.client-logo img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.client-logo__placeholder {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  opacity: 0.6;
}

/* ============================================================
   11. TESTIMONIALS SECTION
   ============================================================ */

.testimonials-wrap {
  max-width: 900px;
  margin: 0 auto;
}

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

.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,102,0,0.4);
}

.testimonial-card__quote {
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
  opacity: 0.7;
}

.testimonial-card__text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-card__author-name {
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.95rem;
}

.testimonial-card__author-company {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.stars {
  color: #ffc107;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* ============================================================
   12. CONTACT SECTION
   ============================================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact__info {
  padding-top: 8px;
}

.contact__info .section-title {
  text-align: right;
}

.contact__info .section-title::after {
  margin: 0.5rem 0 0;
}

.contact__lead {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0055cc 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact__item-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.contact__item-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact__item-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.contact__item-value a {
  color: var(--color-primary);
  direction: ltr;
  display: inline-block;
}

.contact__item-value a:hover {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.contact-form__title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-gray);
}

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

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

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

.form-group label .required {
  color: var(--color-accent);
  margin-right: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
  text-align: right;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,48,135,0.1);
}

.form-control::placeholder {
  color: #bbb;
}

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

/* ============================================================
   13. FOOTER
   ============================================================ */

#site-footer {
  background: #001030;
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .site-logo__name { color: var(--color-white); }
.footer-brand .site-logo__tagline { color: rgba(255,255,255,0.5); }

.footer-brand__desc {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.4rem;
}

.footer-social__link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
  font-size: 0.85rem;
}

.footer-social__link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer-col__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255,102,0,0.4);
  display: inline-block;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), padding-right var(--transition);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--color-accent);
  padding-right: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

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

/* ============================================================
   14. BUTTONS & FORMS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255,102,0,0.35);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(255,102,0,0.45);
}

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

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

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--lg {
  padding: 17px 38px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   15. UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-white  { color: var(--color-white); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Fade-in animation for JS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */

/* Large tablets */
@media (max-width: 1100px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 30px; }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets */
@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .section { padding: 65px 0; }

  .about__grid      { grid-template-columns: 1fr; gap: 36px; }
  .about__image-wrap { order: -1; }

  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .projects-grid    { grid-template-columns: repeat(2, 1fr); }
  .project-card--featured { grid-column: span 1; }

  .contact__grid    { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 20px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .main-nav ul li a {
    padding: 14px 16px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    border-radius: var(--radius-sm);
  }

  .main-nav ul li a:hover,
  .main-nav ul li.current-menu-item a {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
  }

  .nav-cta {
    margin-right: 0;
    margin-top: 16px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats  { gap: 24px; flex-wrap: wrap; }
  .hero__cta    { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }

  .clients-grid  { grid-template-columns: repeat(3, 1fr); }

  .form-row      { grid-template-columns: 1fr; }
  .contact-form  { padding: 28px 20px; }

  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .team-grid    { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* RTL print */
@media print {
  #site-header, .hero__scroll, .nav-toggle { display: none; }
  .section { padding: 30px 0; }
  body { font-size: 12pt; }
}
