/*
Theme Name: FyPDz International Trading
Theme URI: https://fypdz.pl
Author: FyPDz Development Team
Author URI: https://fypdz.pl
Description: Professional multilingual WordPress theme for FyPDz International Trading Company. Corporate design for international trade between Poland and North Africa.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fypdz
Tags: business, e-commerce, translation-ready, custom-logo, custom-menu, featured-images, theme-options
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

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

:root {
  /* FyPDz Brand Colors */
  --fypdz-red: #C8102E;
  --fypdz-red-dark: #A00D24;
  --fypdz-red-light: #E8334D;
  --fypdz-navy: #1B2A4A;
  --fypdz-navy-deep: #16223C;
  --fypdz-charcoal: #2D3748;
  --fypdz-dark: #0F172A;
  --fypdz-white: #FFFFFF;
  --fypdz-light-gray: #F6F7F9;
  --fypdz-medium-gray: #E4E8EE;
  --fypdz-line: #E7EBF1;
  --fypdz-text: #3C4757;
  --fypdz-text-light: #6B7686;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 96px 0;
  --section-padding-sm: 72px 0;
  --container-width: 1200px;
  --header-height: 80px;

  /* Effects */
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
  --transition: all 0.3s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--fypdz-text);
  background-color: var(--fypdz-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--fypdz-navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  margin-bottom: 1.1rem;
  color: var(--fypdz-text);
}

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

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

.section {
  padding: var(--section-padding);
}

.section--tight {
  padding: var(--section-padding-sm);
}

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

.section__head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__title {
  margin-bottom: 14px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--fypdz-red);
  margin: 22px auto 0;
}

.section__title--sm {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.section__title--sm::after {
  margin-top: 16px;
}

.section__subtitle {
  color: var(--fypdz-text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fypdz-red);
  margin-bottom: 14px;
}

.eyebrow--center {
  text-align: center;
}

.eyebrow--light {
  color: var(--fypdz-red-light);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--fypdz-red);
  color: var(--fypdz-white);
}

.btn--primary:hover {
  background-color: var(--fypdz-red-dark);
  box-shadow: 0 10px 24px rgba(168, 13, 36, 0.30);
  transform: translateY(-2px);
  color: var(--fypdz-white);
}

.btn--navy {
  background-color: var(--fypdz-navy);
  color: var(--fypdz-white);
}

.btn--navy:hover {
  background-color: var(--fypdz-navy-deep);
  color: var(--fypdz-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 42, 74, 0.25);
}

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

.btn--outline:hover {
  background: var(--fypdz-white);
  color: var(--fypdz-red);
  border-color: var(--fypdz-white);
}

.btn--outline-dark {
  color: var(--fypdz-navy);
  border-color: rgba(27, 42, 74, 0.35);
  background: transparent;
}

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

.btn--white {
  background-color: var(--fypdz-white);
  color: var(--fypdz-red);
}

.btn--white:hover {
  background-color: var(--fypdz-light-gray);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.15);
}

.btn--block {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fypdz-line);
  height: var(--header-height);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.10);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 28px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.header__logo img {
  max-height: 46px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fypdz-charcoal);
  border-radius: var(--radius-sm);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--fypdz-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.header__nav-link:hover {
  color: var(--fypdz-red);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  transform: scaleX(1);
}

.header__nav-link--active {
  color: var(--fypdz-red);
}

.header__cta {
  margin-left: 10px;
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--fypdz-medium-gray);
}

.lang-switcher__link,
.lang-switcher li.lang-switcher__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fypdz-text-light);
  transition: var(--transition);
  text-transform: uppercase;
}

.lang-switcher__link:hover,
.lang-switcher__link--active {
  background: var(--fypdz-red);
  color: var(--fypdz-white);
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--fypdz-charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(11, 18, 34, 0.92) 0%,
    rgba(21, 32, 57, 0.78) 48%,
    rgba(24, 39, 70, 0.45) 100%
  );
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--fypdz-red);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 70px 0 90px;
}

.hero__tagline {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(200, 16, 46, 0.92);
  color: var(--fypdz-white);
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  color: var(--fypdz-white);
  margin-bottom: 22px;
  line-height: 1.12;
  font-weight: 800;
}

.hero__title span {
  color: var(--fypdz-red-light);
}

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

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

/* Hero entrance */
.anim-up {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-up 0.7s var(--ease-out) forwards;
}

.hero__content .anim-up:nth-child(1) { animation-delay: 0.05s; }
.hero__content .anim-up:nth-child(2) { animation-delay: 0.15s; }
.hero__content .anim-up:nth-child(3) { animation-delay: 0.25s; }
.hero__content .anim-up:nth-child(4) { animation-delay: 0.35s; }

@keyframes hero-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-text {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1.5px;
  height: 46px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--fypdz-red-light);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(250%); }
}

/* ============================================================
   STATS
   ============================================================ */

.stats {
  border-bottom: 1px solid var(--fypdz-line);
  background: var(--fypdz-white);
}

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

.stat {
  text-align: center;
  padding: 8px;
  border-left: 1px solid var(--fypdz-line);
}

.stat:first-child {
  border-left: none;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--fypdz-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat__value::after {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  background: var(--fypdz-red);
  margin: 12px auto 14px;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--fypdz-text-light);
  font-weight: 500;
}

/* ============================================================
   ABOUT PREVIEW (Home)
   ============================================================ */

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

.about-preview__content h2 {
  margin-bottom: 20px;
  max-width: 460px;
}

.about-preview__content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--fypdz-text);
  max-width: 520px;
}

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

.about-preview__media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.about-preview__media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--fypdz-red);
}

/* ============================================================
   SERVICES GRID (Home)
   ============================================================ */

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--fypdz-white);
  border: 1px solid var(--fypdz-medium-gray);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fypdz-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card--link {
  color: inherit;
}

.service-card--link:hover {
  color: inherit;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(200, 16, 46, 0.07);
}

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

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--fypdz-navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--fypdz-text-light);
  line-height: 1.65;
  margin: 0;
}

/* Stagger for home grid */
.services-grid .service-card.fade-in:nth-child(1) { transition-delay: 0.04s; }
.services-grid .service-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card.fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card.fade-in:nth-child(4) { transition-delay: 0.22s; }
.services-grid .service-card.fade-in:nth-child(5) { transition-delay: 0.28s; }
.services-grid .service-card.fade-in:nth-child(6) { transition-delay: 0.34s; }
.services-grid .service-card.fade-in:nth-child(7) { transition-delay: 0.4s; }

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta {
  background: var(--fypdz-navy-deep);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.12);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--fypdz-white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  margin-bottom: 34px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background-color: var(--fypdz-navy-deep);
  padding: 168px 0 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 26px
  );
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 84px;
  height: 3px;
  background: var(--fypdz-red);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: var(--fypdz-white);
}

.page-hero > .container > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 14px auto 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.about-content__text p {
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-highlight {
  margin: 30px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--fypdz-red);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fypdz-navy);
  line-height: 1.5;
}

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

.about-content__media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-content__media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px;
  background: linear-gradient(0deg, rgba(11, 18, 34, 0.78), transparent);
  color: var(--fypdz-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Values */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-value {
  background: var(--fypdz-white);
  border: 1px solid var(--fypdz-medium-gray);
  border-radius: var(--radius);
  text-align: left;
  padding: 34px 30px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

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

.about-value__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 16, 46, 0.07);
  border-radius: var(--radius-sm);
}

.about-value__icon svg {
  width: 27px;
  height: 27px;
  color: var(--fypdz-red);
}

.about-value h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.about-value p {
  font-size: 0.92rem;
  color: var(--fypdz-text-light);
  margin: 0;
  line-height: 1.7;
}

.about-values .about-value.fade-in:nth-child(1) { transition-delay: 0.05s; }
.about-values .about-value.fade-in:nth-child(2) { transition-delay: 0.15s; }
.about-values .about-value.fade-in:nth-child(3) { transition-delay: 0.25s; }

/* Focus rows (About page) */
.focus-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.focus-row__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.focus-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-row__media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--fypdz-red);
}

.focus-row__content h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 16px;
}

.focus-row__content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--fypdz-red);
  margin-top: 16px;
}

.focus-row__content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--fypdz-text);
  margin: 0;
}

@media (max-width: 860px) {
  .focus-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .focus-row--reverse .focus-row__media {
    order: -1;
  }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-tile {
  background: var(--fypdz-white);
  border: 1px solid var(--fypdz-medium-gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-tile:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--fypdz-medium-gray);
}

.service-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.service-tile:hover .service-tile__media img {
  transform: scale(1.06);
}

.service-tile__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 18, 34, 0.32), transparent 55%);
}

.service-tile__icon {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--fypdz-white);
  box-shadow: var(--shadow-sm);
}

.service-tile__icon svg {
  width: 27px;
  height: 27px;
  color: var(--fypdz-red);
}

.service-tile__body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.service-tile__body h3 {
  margin-bottom: 12px;
}

.service-tile__body p {
  font-size: 0.93rem;
  color: var(--fypdz-text-light);
  line-height: 1.7;
  flex: 1;
}

.service-tile__btn {
  margin-top: 24px;
  padding: 11px 24px;
  font-size: 0.88rem;
}

/* Consistent uniform cards: keep the 7th tile centred on wide screens */
@media (min-width: 1081px) {
  .service-tile:nth-child(7) {
    grid-column: 2;
  }
}

.service-tiles .service-tile.fade-in:nth-child(1) { transition-delay: 0.04s; }
.service-tiles .service-tile.fade-in:nth-child(2) { transition-delay: 0.1s; }
.service-tiles .service-tile.fade-in:nth-child(3) { transition-delay: 0.16s; }
.service-tiles .service-tile.fade-in:nth-child(4) { transition-delay: 0.12s; }
.service-tiles .service-tile.fade-in:nth-child(5) { transition-delay: 0.18s; }
.service-tiles .service-tile.fade-in:nth-child(6) { transition-delay: 0.24s; }
.service-tiles .service-tile.fade-in:nth-child(7) { transition-delay: 0.2s; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}

.contact-form {
  background: var(--fypdz-white);
  border: 1px solid var(--fypdz-medium-gray);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.contact-form__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-form__intro {
  font-size: 0.95rem;
  color: var(--fypdz-text-light);
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
  flex: 1;
  min-width: 0;
}

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

.form-group label::after {
  content: '';
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--fypdz-medium-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--fypdz-text);
  background: var(--fypdz-light-gray);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--fypdz-red);
  background: var(--fypdz-white);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.10);
}

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

/* Contact info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--fypdz-white);
  border: 1px solid var(--fypdz-medium-gray);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-info-card .contact-info-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(200, 16, 46, 0.07);
  color: var(--fypdz-red);
}

.contact-info-card .contact-info-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fypdz-text-light);
  margin-bottom: 4px;
}

.contact-info-card__value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fypdz-navy);
}

.contact-info-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fypdz-red);
}

.contact-info-card__link a:hover {
  color: var(--fypdz-red-dark);
}

/* Email CTA card */
.contact-info-card--cta {
  background: var(--fypdz-red);
  border-color: var(--fypdz-red);
  color: var(--fypdz-white);
}

.contact-info-card--cta .contact-info-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--fypdz-white);
}

.contact-info-card--cta .contact-info-card__label {
  color: rgba(255, 255, 255, 0.78);
}

.contact-info-card--cta .contact-info-card__value {
  color: var(--fypdz-white);
  word-break: break-word;
}

.contact-info-card--cta:hover {
  background: var(--fypdz-red-dark);
  border-color: var(--fypdz-red-dark);
  box-shadow: 0 14px 34px rgba(168, 13, 36, 0.32);
}

.contact-info-card--plain .contact-info-card__value {
  font-weight: 500;
}

/* Maps */
.contact-map {
  margin-top: 72px;
}

.contact-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.contact-map-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--fypdz-line);
}

.contact-map-card iframe {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}

.contact-map-card__label {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fypdz-navy);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--fypdz-dark);
  color: rgba(255, 255, 255, 0.68);
  padding-top: 72px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand img {
  max-height: 44px;
  margin-bottom: 18px;
  filter: brightness(10);
  opacity: 0.95;
}

.footer__brand p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  margin: 0;
}

.footer__heading {
  color: var(--fypdz-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__links li {
  margin-bottom: 11px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer__links a:hover {
  color: var(--fypdz-red-light);
  padding-left: 4px;
}

.footer__contact p {
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer__contact strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.footer__email a {
  color: var(--fypdz-red-light);
  font-weight: 600;
  word-break: break-word;
}

.footer__bottom {
  padding: 26px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer__bottom p {
  margin: 0;
}

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

[data-reveal="up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image reveal */
[data-reveal="img"] {
  overflow: hidden;
  position: relative;
}

[data-reveal="img"] img {
  transform: scale(1.1);
  opacity: 0.3;
  transition: transform 1.2s var(--ease-out), opacity 0.9s ease;
  will-change: transform, opacity;
}

[data-reveal="img"].is-visible img {
  transform: scale(1);
  opacity: 1;
}

/* ============================================================
   UTILITIES & ACCESSIBILITY
   ============================================================ */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Submit button spinner */
.btn__spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--fypdz-white);
  border-radius: 50%;
  animation: fypdz-spin 0.7s linear infinite;
}

@keyframes fypdz-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  :root {
    --section-padding: 80px 0;
  }

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

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat:nth-child(odd) {
    border-left: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
    --section-padding: 64px 0;
    --section-padding-sm: 52px 0;
  }

  h1 { font-size: 2.1rem; }

  /* Mobile nav */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(330px, 88vw);
    height: 100vh;
    background: var(--fypdz-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 30px 40px;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.16);
    transition: right 0.4s var(--ease-out);
    gap: 6px;
  }

  .header__nav--open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2px;
  }

  .header__nav-link {
    width: 100%;
    padding: 12px 10px;
    font-size: 1.05rem;
  }

  .header__nav-link::after {
    display: none;
  }

  .lang-switcher {
    margin: 18px 0 6px;
    padding: 14px 0 0;
    border-left: none;
    border-top: 1px solid var(--fypdz-medium-gray);
    width: 100%;
  }

  .header__cta {
    margin: 14px 0 0;
    width: 100%;
    padding: 14px 20px;
  }

  .header__toggle {
    display: flex;
  }

  .header__toggle--active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .header__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle--active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Hero */
  .hero {
    min-height: 82vh;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }

  .hero__scroll {
    display: none;
  }

  /* Layouts collapse */
  .about-preview,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview__media img {
    height: 360px;
  }

  .about-content__media img {
    height: 420px;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-tiles {
    grid-template-columns: 1fr;
  }

  .service-tile:last-child .service-tile__body h3 {
    font-size: 1.2rem;
  }

  .contact-form {
    padding: 28px 26px;
  }

  .contact-map-grid {
    grid-template-columns: 1fr;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero {
    padding: 140px 0 60px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

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

  .stat {
    border-left: none;
    border-top: 1px solid var(--fypdz-line);
    padding-top: 26px;
    margin-top: 6px;
  }

  .stat:first-child {
    border-top: none;
    margin-top: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .btn {
    padding: 12px 22px;
  }

  .service-tile__body p {
    font-size: 0.92rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .anim-up,
  .fade-in,
  [data-reveal="up"] {
    opacity: 1;
    transform: none;
  }

  [data-reveal="img"] img {
    transform: none;
    opacity: 1;
  }
}