/* SUDATURK public brand system. Source: Brand & Website Visual Guidelines. */
:root {
  --brand-red: #ec1c24;
  --brand-gold: #e1ba47;
  --brand-orange: #ea4a37;
  --brand-graphite: #333338;
  --brand-gray: #6f7177;
  --brand-light: #f6f6f6;
  --brand-white: #ffffff;
  --brand-gradient: linear-gradient(135deg, #ec1c24 0%, #ea4a37 45%, #e1ba47 100%);
  --brand-border: rgba(51, 51, 56, .12);
  --brand-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --brand-radius-card: 16px;
  --brand-radius-control: 10px;
  --brand-radius-button: 999px;
  --brand-container: 1180px;
  --brand-section-space: clamp(72px, 8vw, 112px);
}

html[dir="ltr"] {
  direction: ltr;
}

html[dir="rtl"] {
  direction: rtl;
}

body {
  overflow-x: clip;
  text-align: start;
  background: var(--brand-white);
}

html[dir="ltr"] body {
  font-family: "Inter", "Montserrat", sans-serif;
}

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Tajawal", sans-serif;
}

:where(main, section, article, aside, header, footer, nav, form, div) {
  min-width: 0;
}

:where(h1, h2, h3, h4, p, li, label, input, textarea, select) {
  text-align: start;
}

:where(h1, h2, h3, h4) {
  color: var(--text-heading, var(--brand-graphite));
  letter-spacing: 0;
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

.container {
  width: min(var(--brand-container), calc(100% - clamp(32px, 6vw, 80px)));
  margin-inline: auto;
}

.section {
  padding-block: var(--brand-section-space);
}

.section.soft {
  background: var(--brand-light);
}

.section > .container,
.section .section-copy,
.section .section-head,
.shop-toolbar,
.detail-panel,
.quote-panel,
.quote-form,
.site-footer {
  text-align: start;
}

.footer-grid {
  grid-template-columns: 1.1fr .75fr .9fr 1.25fr;
  gap: 32px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer-office {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.footer-office strong {
  color: var(--brand-white);
}

.footer-office span,
.footer-office a {
  color: var(--text-footer-body);
  font-size: .9rem;
  line-height: 1.55;
}

.legal-hero {
  min-height: 46svh;
}

.legal-layout {
  max-width: 980px;
}

.legal-content {
  padding: clamp(24px, 5vw, 56px);
}

.legal-content h2 {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 2px solid rgba(225,186,71,.35);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 24px 0 8px;
}

.legal-content p,
.legal-content dd {
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content dl {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-card);
  overflow: hidden;
}

.legal-content dt,
.legal-content dd {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--brand-border);
}

.legal-content dt {
  color: var(--brand-graphite);
  background: var(--brand-light);
  font-weight: 800;
}

.legal-content a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  z-index: 70;
  inset-inline: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(225,186,71,.45);
  border-radius: var(--brand-radius-card);
  color: var(--brand-white);
  background: rgba(51,51,56,.97);
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: .94rem;
  line-height: 1.6;
}

.cookie-banner > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-banner .btn {
  min-height: 42px;
  padding-inline: 16px;
  border: 0;
  cursor: pointer;
  font-size: .88rem;
}

.cookie-banner > div > a {
  padding: 8px;
  color: var(--brand-gold);
  font-weight: 700;
}

.section-head,
.section-copy {
  margin-inline: 0;
}

.section-head {
  max-width: 780px;
}

.hero h1,
.service-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 5vw, 3.625rem);
  font-weight: 900;
  line-height: 1.12;
}

.section h2,
.shop-toolbar h2,
.detail-panel h2 {
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  font-weight: 800;
  line-height: 1.22;
}

:where(.service-card, .product-card, .about-grid article, .feature-card, .spec-card) h3,
:where(.service-card, .product-card, .about-grid article, .feature-card, .spec-card) strong {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  line-height: 1.35;
}

:where(.hero, .service-hero, .section, .detail-panel, .service-card, .product-card) p {
  line-height: 1.7;
}

.eyebrow,
.section-kicker,
.breadcrumb {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--text-accent, var(--brand-red));
  font-weight: 800;
  text-align: start;
}

.eyebrow::before,
.section-kicker::before,
.breadcrumb::before {
  flex: 0 0 auto;
  width: 22px;
  height: 3px;
  border-radius: var(--brand-radius-button);
  background: var(--brand-gradient);
}

.site-header {
  min-height: 76px;
  padding: 10px 18px;
  border: 1px solid rgba(225, 186, 71, .38);
  border-radius: var(--brand-radius-card);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--brand-shadow);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.main-nav {
  flex-wrap: wrap;
  color: var(--text-navigation, var(--brand-graphite));
}

.main-nav a {
  padding-block: 10px;
  text-align: center;
}

.lang-toggle,
.menu-toggle {
  border-radius: var(--brand-radius-control);
}

.hero-content,
.service-hero .container {
  margin-inline: auto;
  text-align: start;
}

.hero-content {
  width: min(var(--brand-container), calc(100% - clamp(32px, 6vw, 80px)));
  max-width: none;
}

.hero-content > * {
  max-width: 760px;
}

.hero-copy,
.service-hero .container > p:not(.eyebrow) {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding-inline: 22px;
  border-radius: var(--brand-radius-button);
  line-height: 1.2;
  text-align: center;
}

.btn.primary {
  color: var(--text-primary-button, var(--brand-white));
  background: var(--brand-gradient);
}

.btn.secondary {
  border-color: var(--brand-gold);
  color: var(--text-secondary-button, var(--brand-graphite));
  background: var(--brand-white);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(225, 186, 71, .5);
  outline-offset: 3px;
}

.about-grid article,
.service-card,
.product-card,
.detail-panel,
.feature-card,
.spec-card,
.shop-sidebar,
.quote-form,
.quote-panel,
.quote-card,
.nav-card {
  border-radius: var(--brand-radius-card);
  border-color: var(--brand-border);
  box-shadow: var(--brand-shadow);
}

:where(.about-grid article, .service-card, .product-card, .detail-panel, .feature-card, .spec-card) {
  text-align: start;
}

.service-card,
.product-card,
.about-grid article {
  border-top: 4px solid var(--brand-gold);
}

.service-card:nth-child(3n + 1),
.product-card:nth-child(3n + 1),
.about-grid article:nth-child(3n + 1) {
  border-top-color: var(--brand-red);
}

.service-card:nth-child(3n),
.product-card:nth-child(3n),
.about-grid article:nth-child(3n) {
  border-top-color: var(--brand-graphite);
}

.service-card::before,
.product-card::before,
.detail-panel::before {
  display: none;
}

.service-grid,
.about-grid,
.product-grid,
.feature-grid,
.spec-grid {
  align-items: stretch;
}

.service-card a,
.product-actions,
.hero-actions {
  margin-inline: 0;
}

.service-page-grid,
.shop-layout,
.quote-layout,
.split,
.footer-grid,
.category-info {
  direction: inherit;
}

.service-content,
.service-sidebar,
.shop-sidebar,
.category-copy,
.product-body,
.quote-panel,
.quote-form {
  text-align: start;
}

.shop-sidebar {
  position: static;
  border: 1px solid var(--brand-border);
}

.shop-layout {
  grid-template-columns: minmax(0, 1fr);
}

#categoryFilters {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.category-group {
  margin-top: 0;
}

.category-group > a,
#categoryFilters > a {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--brand-border);
}

.category-group > div {
  margin-top: 8px;
}

#categoryFilters a,
.category-group a {
  border-radius: var(--brand-radius-control);
  text-align: start;
}

#categoryFilters a.active {
  border-radius: var(--brand-radius-control);
  border-color: rgba(236, 28, 36, .35);
  color: var(--brand-graphite);
  background: rgba(236, 28, 36, .07);
  box-shadow: inset 4px 0 0 var(--brand-red);
}

html[dir="rtl"] #categoryFilters a.active {
  box-shadow: inset -4px 0 0 var(--brand-red);
}

.category-info.without-media .category-copy,
.category-copy .category-intro,
.category-copy .category-description {
  margin-inline: 0;
}

.category-copy h2 {
  max-width: 28ch;
}

.category-copy .category-intro,
.category-copy .category-description {
  max-width: 78ch;
}

.product-visual,
.detail-image,
.product-gallery img {
  overflow: hidden;
  border-radius: var(--brand-radius-card);
}

.product-grid .product-visual,
.product-grid .product-visual img {
  border-radius: var(--brand-radius-card) var(--brand-radius-card) 0 0;
}

.product-actions {
  justify-content: flex-start;
}

.product-actions .btn {
  flex: 0 1 auto;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border-radius: var(--brand-radius-control);
  text-align: start;
}

.quote-form label,
.quote-form small,
.form-status {
  text-align: start;
}

.quote-card {
  background: var(--brand-graphite);
}

.site-footer {
  border-top: 4px solid transparent;
  border-image: var(--brand-gradient) 1;
  background: var(--brand-graphite);
}

.site-footer img {
  border-radius: var(--brand-radius-card);
}

.site-footer :where(h2, h3, h4, p, a) {
  text-align: start;
}

@media (max-width: 980px) {
  .container,
  .hero-content {
    width: min(100% - 32px, var(--brand-container));
  }

  .site-header {
    inset: 10px 12px auto;
  }

  .main-nav.open {
    align-items: stretch;
    text-align: start;
  }

  .main-nav.open a {
    width: 100%;
    text-align: start;
  }

  .service-page-grid,
  .shop-layout,
  .quote-layout,
  .split,
  .footer-grid,
  .category-info {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .service-sidebar,
  .shop-sidebar,
  .quote-panel {
    position: static;
  }

  .shop-sidebar {
    order: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --brand-section-space: 64px;
  }

  .hero h1,
  .service-hero h1 {
    font-size: clamp(1.875rem, 9vw, 2.25rem);
  }

  .section h2,
  .shop-toolbar h2,
  .detail-panel h2 {
    font-size: clamp(1.5rem, 7vw, 1.75rem);
  }

  .site-header {
    min-height: 64px;
    padding: 7px 10px;
  }

  .brand img {
    height: 48px;
  }

  .hero-actions,
  .product-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .product-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .about-grid,
  .service-grid,
  .product-grid,
  .feature-grid,
  .spec-grid,
  .quote-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid,
  .legal-content dl,
  .cookie-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-banner {
    inset-inline: 10px;
    bottom: 10px;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
  }

  .cookie-banner > div {
    align-items: stretch;
  }

  .cookie-banner .btn {
    flex: 1 1 100%;
  }

  .legal-content dt {
    border-bottom: 0;
  }

  .wide {
    grid-column: auto;
  }

  :where(.detail-panel, .service-card, .product-body, .shop-sidebar, .quote-form, .quote-panel, .quote-card, .nav-card) {
    padding: 20px;
  }
}

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