/* ==========================================================================
   QSA – Quality System Azerbaijan
   Main stylesheet
   --------------------------------------------------------------------------
   Rebuilt from the original WordPress (Neve) theme as a static template.
   Design tokens (colors, type scale, container widths) match the original
   theme customizer values.

   CONTENTS
   1.  Design tokens (custom properties)
   2.  Fonts
   3.  Base / reset
   4.  Layout helpers (container, section, grid)
   5.  Buttons
   6.  Forms
   7.  Header / navigation
   8.  Off-canvas mobile menu
   9.  Search bar
   10. Footer
   11. Page hero variants
   12. Home page sections
   13. About page sections
   14. Services page sections
   15. Contact page sections
   16. Article (post) template + sidebar + comments
   17. Blog listing
   18. Certificate check
   19. Utilities (scroll-to-top, visually-hidden, spacing)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (from the original theme) */
  --color-brand: #163a51;          /* primary navy used on buttons / headings   */
  --color-brand-alt: #173a51;      /* footer navy (mobile)                      */
  --color-brand-deep: #0d293a;     /* testimonials background                   */
  --color-brand-box: #113143;      /* about page CTA card                       */
  --color-accent: #0065cb;         /* theme primary accent (links, buttons)     */
  --color-accent-dark: #0057ad;    /* accent hover                              */
  --color-dark: #0d1821;           /* darkest background (footer bottom)        */
  --color-light: #f8f8f8;          /* light section background                  */
  --color-text: #2c2c2c;           /* body text                                 */
  --color-text-invert: #ffffff;    /* text on dark backgrounds                  */
  --color-muted: #d0d0d0;          /* footer copyright text                     */
  --color-border: #e0e0e0;

  /* Typography */
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --fs-body: 16px;
  --lh-body: 1.7;
  --fs-h1: 39px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-h4: 16px;
  --fs-h5: 14px;
  --fw-heading: 600;
  --lh-heading: 1.3;

  /* Layout */
  --container: 748px;
  --container-inner: 718px;        /* content width inside full-bleed sections  */
  --gutter: 15px;

  /* Buttons */
  --btn-radius: 4px;
  --btn-padding: 12px 24px;
  --fs-btn: 14px;

  /* Misc */
  --radius-card: 16px;
  --radius-large: 24px;
  --header-height: 72px;
}

@media (min-width: 576px) {
  :root {
    --container: 992px;
    --container-inner: 962px;
    --fs-h1: 55px;
    --fs-h2: 34px;
  }
}

@media (min-width: 960px) {
  :root {
    --container: 1170px;
    --container-inner: 1140px;
    --fs-body: 18px;
    --fs-h1: 70px;
    --fs-h2: 46px;
    --fs-h3: 24px;
    --fs-h4: 20px;
    --fs-h5: 16px;
    --fs-btn: 18px;
  }
}

/* --------------------------------------------------------------------------
   2. Fonts (self-hosted Inter variable font)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   3. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background: #ffffff;
  overflow-x: hidden;
}

/* Sticky footer: the main area grows so the footer sits at the bottom
   even on short pages */
main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul {
  padding-left: 1.25em;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

figure {
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Full-bleed section with a centered inner container */
.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--light   { background: var(--color-light); }
.section--brand   { background: var(--color-brand);      color: var(--color-text-invert); }
.section--deep    { background: var(--color-brand-deep); color: var(--color-text-invert); }
.section--dark    { background: var(--color-dark);       color: var(--color-text-invert); }

.section--brand h1, .section--brand h2, .section--brand h3,
.section--deep h2, .section--deep h3, .section--deep h5,
.section--dark h2, .section--dark h3 {
  color: var(--color-text-invert);
}

.section__inner {
  width: 100%;
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__title {
  text-align: center;
  color: var(--color-brand);
}

.section__lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5em;
}

/* Simple responsive grid */
.grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 576px) and (max-width: 767px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Two-column media/text row (used by "Əsas Xidmətlər", Halal/CE …) */
.media-row {
  display: grid;
  gap: 30px;
  align-items: center;
  padding: 24px 0;
}

@media (min-width: 768px) {
  .media-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Alternating layout: image on the right for every second row */
  .media-row--reverse .media-row__media { order: 2; }
  .media-row--reverse .media-row__body  { order: 1; }
}

.media-row__media img {
  width: 100%;
  border-radius: var(--radius-card);
}

.media-row__title {
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: var(--btn-padding);
  border: 0;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: var(--fs-btn);
  line-height: 1.6;
  text-align: center;
  text-transform: capitalize;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: var(--color-accent);
  color: var(--color-text-invert);
}

.btn:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-invert);
}

.btn--sm {
  font-size: 16px;
}

/* Navy button (most CTAs on the site) */
.btn--brand {
  background: var(--color-brand);
  color: var(--color-text-invert);
}

.btn--brand:hover {
  background: var(--color-brand-deep);
}

/* White button on dark backgrounds */
.btn--light {
  background: #ffffff;
  color: var(--color-brand);
}

.btn--light:hover {
  background: var(--color-light);
  color: var(--color-brand);
}

/* Outlined button used on image cards */
.btn--outline-light {
  background: transparent;
  border: 2px solid var(--color-accent);
  padding: 10px 22px;
  color: var(--color-text-invert);
}

.btn--outline-light:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text-invert);
}

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--color-light);
  border-radius: 0;
  background: #ffffff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
}

label {
  font-weight: 600;
}

.required {
  color: #c0392b;
}

/* Stacked form field */
.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

/* Two fields side by side on wider screens */
@media (min-width: 576px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 8px 16px;
  background: #ffffff;
  color: var(--color-brand);
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-logo {
  display: flex;
  flex-shrink: 0;
}

.site-logo img {
  width: 120px;
  height: auto;
}

/* Desktop menu */
.main-nav {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
    flex: 1 1 auto;
  }
}

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__list a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.main-nav__list a:hover,
.main-nav__item.is-active > a {
  color: var(--color-brand);
}

.main-nav .caret {
  flex-shrink: 0;
  width: 0.8em;
  height: 0.8em;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* Dropdowns */
.main-nav__item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1010;
  min-width: 260px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(13, 24, 33, 0.14);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown .dropdown {
  top: -6px;
  left: 100%;
  min-width: 340px;
}

.dropdown .dropdown a {
  white-space: nowrap;
}

.dropdown li {
  position: relative;
}

.dropdown a {
  display: flex;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}

.dropdown a:hover {
  background: var(--color-light);
}

.dropdown .caret {
  transform: rotate(-90deg);
}

li:hover > .dropdown,
li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header action buttons (search / burger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.lang-switcher__toggle:hover {
  background: var(--color-light);
}

.lang-switcher__toggle .caret {
  width: 0.7em;
  height: 0.7em;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* Hover opening only on devices with a real pointer; touch uses the
   click toggle in main.js (.is-open). */
@media (hover: hover) {
  .lang-switcher:hover .lang-switcher__toggle .caret {
    transform: rotate(180deg);
  }
}

.lang-switcher.is-open .lang-switcher__toggle .caret {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1010;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(13, 24, 33, 0.18);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

@media (hover: hover) {
  .lang-switcher:hover .lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.lang-switcher__menu a:hover {
  background: var(--color-light);
}

.lang-switcher__menu a.is-active {
  font-weight: 600;
  color: var(--color-brand);
  background: var(--color-light);
}

.lang-switcher__check {
  width: 14px;
  height: 14px;
  margin-left: auto;
  fill: currentColor;
  flex-shrink: 0;
}

/* Compact header on small screens */
@media (max-width: 575px) {
  .site-header__inner {
    gap: 10px;
  }

  .site-logo img {
    width: 92px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-actions .icon-btn {
    width: 36px;
  }

  .lang-switcher__toggle {
    padding: 6px;
    gap: 6px;
    font-size: 13px;
  }

  .lang-switcher__flag {
    width: 22px;
    height: 22px;
  }

  .lang-switcher__menu {
    min-width: 170px;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #070505;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--color-brand);
}

.icon-btn svg {
  fill: currentColor;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   8. Off-canvas mobile menu
   -------------------------------------------------------------------------- */
.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1200;
  width: min(360px, 88vw);
  padding: 24px 0;
  overflow-y: auto;
  background: #ffffff;
  color: #1f1818;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.offcanvas.is-open {
  transform: translateX(0);
  box-shadow: 0 0 40px rgba(13, 24, 33, 0.3);
}

.offcanvas__close {
  margin: 0 12px 12px auto;
  display: flex;
}

.offcanvas__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offcanvas__nav a {
  display: block;
  flex: 1 1 auto;
  padding: 11px 20px;
  color: #1f1818;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.offcanvas__nav .sub-menu a {
  font-weight: 400;
  text-transform: none;
  padding-left: 32px;
}

.offcanvas__nav .sub-menu .sub-menu a {
  padding-left: 46px;
  font-size: 14px;
}

.offcanvas__nav li {
  border-bottom: 1px solid var(--color-light);
}

.offcanvas__nav li li {
  border-bottom: 0;
}

.offcanvas__item-row {
  display: flex;
  align-items: center;
}

.offcanvas__submenu-toggle {
  width: 46px;
  height: 42px;
  flex-shrink: 0;
}

.offcanvas__submenu-toggle .caret {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.offcanvas__submenu-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.offcanvas .sub-menu {
  display: none;
}

.offcanvas .sub-menu.is-open {
  display: block;
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(13, 24, 33, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.offcanvas-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Search bar
   -------------------------------------------------------------------------- */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 990;
  padding: 16px 0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 24, 33, 0.12);
  display: none;
}

.search-bar.is-open {
  display: block;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1 1 auto;
  border-radius: 2px;
  height: 40px;
}

.search-form .search-submit {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
}

/* Close button sits in the flex flow, outside the input on the right */
.search-form .search-close {
  flex-shrink: 0;
}

/* Header bar: magnifier inside the input, offset past the close button */
.search-bar .search-form .search-submit {
  right: 50px;
}

.search-bar .search-form input[type="search"] {
  padding-right: 48px;
}

/* Hide the browser's native clear (x) control on search inputs */
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Sidebar search: icon sits inside the input */
.sidebar .search-form input[type="search"] {
  padding-right: 44px;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (min-width: 960px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 959px) {
  .site-footer {
    background: var(--color-brand-alt);
  }
}

.site-footer__copyright {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.site-footer__copyright a {
  color: var(--color-muted);
  margin: 0 4px;
}

.site-footer__copyright a:hover {
  color: var(--color-text-invert);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: block;
  padding: 6px 4px;
  color: var(--color-text-invert);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   11. Page hero variants
   -------------------------------------------------------------------------- */

/* Plain page title block (About, Contact, Services, Certificate check) */
.page-title {
  padding: 56px 0;
}

.page-title h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(39px, 6vw, var(--fs-h1));
}

/* Article hero with background image + dark overlay (post template) */
.post-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
  padding: 40px 0;
  background-size: cover;
  background-position: center;
  color: var(--color-text-invert);
}

@media (min-width: 576px) {
  .post-hero {
    min-height: 30vh;
    padding: 60px 0;
  }
}

@media (min-width: 960px) {
  .post-hero {
    min-height: 50vh;
    align-items: flex-end;
  }
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.post-hero__content {
  position: relative;
}

.post-hero__title {
  margin: 0 0 8px;
  color: var(--color-text-invert);
  font-size: clamp(28px, 5vw, 65px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.post-meta li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  opacity: 0.7;
}

.post-meta a {
  color: var(--color-text-invert);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   12. Home page sections
   -------------------------------------------------------------------------- */

/* 12.1 Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 72px 0;
  color: var(--color-text-invert);
  background: var(--color-brand-deep);
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero {
    min-height: 912px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 85%;
  /* the original uses a WP duotone filter; see the inline SVG in index.html */
  filter: url("#duotone-navy");
}

.hero__content {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: 65fr 35fr;
  }
}

.hero__badge {
  width: 133px;
  margin-bottom: 8px;
}

.hero__title {
  font-size: 31px;
  color: var(--color-text-invert);
}

.hero__text {
  font-size: 19px;
}

.hero__portrait {
  text-align: center;
}

.hero__portrait img {
  max-width: 320px;
  width: 100%;
  border: 7px solid #ffffff;
  border-radius: 72px;
}

.hero__portrait figcaption a {
  color: var(--color-text-invert);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 12.2 Feature strip (4 icon columns) */
.feature__icon {
  display: block;
  width: 100px;
  margin: 0 auto 16px;
}

.feature__title {
  text-align: center;
  color: var(--color-brand);
}

.feature__text {
  text-align: center;
  margin: 0;
}

/* 12.3 "Biz Nə Təklif Edirik?" cards */
.offer-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
}

.offer-card__image {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.offer-card__title {
  text-align: center;
  color: var(--color-brand);
  font-size: 23px;
}

.offer-card__text {
  text-align: center;
  font-style: italic;
}

.offer-card__actions {
  text-align: center;
}

/* 12.4 Testimonials */
.testimonial__image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.testimonial__name {
  text-align: center;
}

.testimonial__quote {
  text-align: center;
  margin: 0;
}

/* 12.5 Accreditation logos */
.accreditation-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
  padding: 24px 0;
}

.accreditation-grid img {
  width: auto;
  max-height: 150px;
  max-width: 240px;
  object-fit: contain;
}

/* 12.6 CTA band */
.cta {
  text-align: center;
}

.cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta__text {
  margin-bottom: 1.5em;
}

/* --------------------------------------------------------------------------
   13. About page sections
   -------------------------------------------------------------------------- */
.team-group-title {
  text-align: center;
  color: var(--color-brand);
  font-size: 26px;
  margin: 48px 0 8px;
}

.team-member {
  text-align: center;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
}

.team-member__photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin: 0 auto 20px;
}

.team-member__name {
  color: var(--color-brand);
  font-size: 20px;
  margin-bottom: 4px;
}

.team-member__role {
  margin: 0;
}

.join-cta {
  margin-top: 56px;
  padding: 48px 32px;
  border-radius: var(--radius-large);
  background: var(--color-brand-box);
  color: var(--color-text-invert);
  text-align: center;
}

.join-cta__title {
  color: var(--color-text-invert);
  font-size: 35px;
}

.join-cta__text {
  max-width: 720px;
  margin: 24px auto 0;
}

/* --------------------------------------------------------------------------
   14. Services page sections
   -------------------------------------------------------------------------- */

/* Image card with bottom-left caption (ISO standards grid) */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
  padding: 48px 32px;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-text-invert);
}

.service-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.service-card__content {
  position: relative;
  z-index: 2;
}

.service-card__title {
  color: var(--color-text-invert);
  font-size: 26px;
}

/* "Digər Xidmətlər" columns on the dark band */
.other-service {
  text-align: center;
}

.other-service__image {
  width: 100%;
  max-width: 467px;
  border-radius: var(--radius-large);
  margin-bottom: 24px;
}

.other-service__title {
  color: var(--color-text-invert);
}

/* --------------------------------------------------------------------------
   15. Contact page sections
   -------------------------------------------------------------------------- */
.contact-card {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-large);
  background: #ffffff;
  text-align: center;
}

.contact-card__icon {
  width: 72px;
  margin: 24px auto;
  display: block;
}

.contact-card__title {
  color: var(--color-brand);
}

.contact-card__text {
  font-size: 15px;
  margin-bottom: 24px;
}

.contact-panel__photo {
  width: 100%;
  min-height: 320px;
  max-height: 563px;
  object-fit: cover;
  border-radius: var(--radius-large);
  margin-bottom: 40px;
}

.contact-panel__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-panel__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  color: var(--color-text-invert);
  font-size: 15px;
}

.contact-form__note {
  font-size: 13px;
  color: var(--color-light);
}

/* Social icon links */
.social-links {
  display: flex;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-invert);
  transition: background-color 0.2s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.social-links svg {
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   16. Article (post) template + sidebar + comments
   -------------------------------------------------------------------------- */
.post-layout {
  display: grid;
  gap: 48px;
  padding: 48px 0;
}

@media (min-width: 960px) {
  .post-layout {
    grid-template-columns: 70fr 30fr;
  }
}

.article-content h2 {
  margin-top: 1.2em;
  font-size: clamp(26px, 3.2vw, 34px);
}

.article-content h3 {
  margin-top: 1em;
}

.article-content figure {
  margin: 1.5em 0;
}

.article-content img {
  border-radius: var(--radius-card);
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  font-size: 15px;
}

.post-tags a {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
}

.post-tags a:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Sidebar */
.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-widget__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sidebar-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 85%;
}

.sidebar-widget li {
  padding: 8px 0;
  line-height: 1.7;
}

.sidebar-widget a {
  color: var(--color-text);
}

.sidebar-widget a:hover {
  color: var(--color-brand);
}

/* Comment form (boxed, like the original) */
.comment-respond {
  padding: 24px;
  border-radius: var(--radius-large);
  background: var(--color-light);
}

@media (min-width: 960px) {
  .comment-respond {
    padding: 40px;
  }
}

.comment-respond__title {
  font-size: clamp(24px, 3vw, 34px);
}

.comment-notes {
  font-size: 14px;
}

.comment-form .form-field textarea {
  min-height: 180px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.checkbox-field label {
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   17. Blog listing
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.post-card__thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-large);
}

.post-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-large);
  transition: transform 0.3s ease;
}

.post-card__thumb:hover img {
  transform: scale(1.03);
}

.post-card__body {
  padding: 20px 4px;
}

.post-card__title {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 8px;
}

.post-card__title a {
  color: var(--color-text);
}

.post-card__title a:hover {
  color: var(--color-brand);
}

.post-card__meta {
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 12px;
}

.post-card__excerpt {
  margin-bottom: 12px;
}

.read-more {
  font-weight: 600;
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   18. Certificate check
   -------------------------------------------------------------------------- */
.cert-form {
  max-width: 500px;
  width: 100%;
  margin-bottom: 30px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cert-form label {
  display: block;
  margin-bottom: 5px;
}

.cert-form input {
  margin-bottom: 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.cert-form button {
  width: 100%;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  background: #0073aa;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cert-form button:hover {
  background: #005177;
}

.cert-result {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #0073aa;
  border-radius: 6px;
}

.cert-result:empty {
  display: none;
}

.cert-result h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 10px;
}

.cert-result p {
  margin: 5px 0;
}

.cert-result .error {
  color: #a00000;
  font-weight: 700;
}

@media (max-width: 600px) {
  .cert-form,
  .cert-result {
    padding: 15px;
  }

  .cert-form button {
    padding: 12px;
  }
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 3px;
  background: var(--color-accent);
  color: var(--color-text-invert);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.spacer-sm { height: 16px; }
.spacer-md { height: 24px; }
.spacer-lg { height: 40px; }
