/*
Theme Name: OFFI
Theme URI: https://www.offi.com.tr
Author: OFFI
Author URI: https://www.offi.com.tr
Description: OFFI kurumsal sitesi için tamamen WordPress ve Elementor üzerinden yönetilebilen kurumsal tema.
Version: 3.2.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: offi
*/

/* Elementor is the editor, not a second visual shell. The imported OFFI
   widgets own the exact Astro DOM and must not inherit container geometry. */
.offi-managed-region,
.offi-managed-region > .elementor,
.offi-managed-region > .elementor > .elementor-element,
.offi-managed-region .elementor-widget-offi-site-header,
.offi-managed-region .elementor-widget-offi-site-footer,
.offi-managed-region .elementor-widget-container {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* The real header and menu are fixed-position Astro components. Keep their
   Elementor editing shell measurable in the editor, but remove its otherwise
   empty 20px line box from the public document flow. */
body:not(.elementor-editor-active) .offi-managed-region--header,
body:not(.elementor-editor-active) .offi-managed-region--header > .elementor,
body:not(.elementor-editor-active) .offi-managed-region--header > .elementor > .elementor-element,
body:not(.elementor-editor-active) .offi-managed-region--header .elementor-widget-offi-site-header,
body:not(.elementor-editor-active) .offi-managed-region--header .elementor-widget-container {
  height: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  overflow: visible !important;
}

.offi-main--full,
.offi-entry--elementor,
.offi-entry--elementor > .offi-entry__content {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.offi-entry--elementor > .offi-entry__content > .elementor,
.offi-astro-section,
.offi-astro-section > .elementor-element,
.offi-astro-section > .e-con-inner,
.offi-astro-section .elementor-widget-container {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Elementor containers ship with a 10px default padding and a 20px gap.
   Even when their visual box is flattened, Chromium can expose that spacing
   around generated children. OFFI widgets own the complete Astro geometry. */
.offi-astro-section {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

.offi-astro-section::before,
.offi-astro-section::after {
  display: none !important;
  content: none !important;
}

/* The Elementor Kit sets a literal link colour. Header/menu links must keep
   the current on-media colour inherited from the exact Astro shell. */
.offi-wordpress-content .hdr a,
.offi-wordpress-content .menu a {
  color: inherit;
}

@font-face {
  font-family: "Montserrat";
  src: url("site/fonts/montserrat-tr-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/*
 * WordPress ve Elementor sayfalarının ortak görsel kabuğu.
 */

body.offi-wordpress-content {
  --offi-paper: var(--e-global-color-offi-paper, #f3f5f4);
  --offi-ink: var(--e-global-color-primary, #171a19);
  --offi-muted: var(--e-global-color-secondary, #69716d);
  --offi-line: var(--e-global-color-offi-line, #d9dedb);
  --offi-accent: var(--e-global-color-accent, #477461);
  margin: 0;
  background: var(--bg, var(--offi-paper));
  color: var(--fg, var(--offi-ink));
  font-family: var(--font-sans, "Montserrat"), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: var(--leading-body, 1.68);
}

.offi-wordpress-content *,
.offi-wordpress-content *::before,
.offi-wordpress-content *::after {
  box-sizing: border-box;
}

.offi-wordpress-content img {
  max-width: 100%;
  height: auto;
}

.offi-wordpress-content a {
  color: inherit;
}

.offi-elementor-location:focus {
  outline: none;
}

.offi-wordpress-content .offi-skip-link {
  position: fixed;
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  background: var(--offi-paper);
  color: var(--offi-ink);
}

.offi-wordpress-content .offi-skip-link:focus {
  transform: translateY(0);
}

.offi-wordpress-content .offi-wp-header {
  position: relative;
  z-index: 30;
  background: var(--offi-ink);
  color: var(--offi-paper);
}

.offi-wordpress-content .offi-wp-header__inner,
.offi-wordpress-content .offi-wp-footer__inner {
  display: flex;
  width: min(100% - 2.5rem, 90rem);
  min-height: 5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.offi-wordpress-content .offi-wp-brand__text {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  text-decoration: none;
}

.offi-wordpress-content .custom-logo-link {
  display: block;
  line-height: 0;
}

.offi-wordpress-content .custom-logo {
  width: auto;
  max-height: 3.25rem;
}

.offi-wordpress-content .offi-menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
}

.offi-wordpress-content .offi-menu a {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.offi-wordpress-content .offi-menu a:hover,
.offi-wordpress-content .offi-menu a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.offi-wordpress-content .offi-main {
  width: min(100% - 2.5rem, 78rem);
  min-height: 55vh;
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.offi-wordpress-content .offi-main--full {
  width: 100%;
  max-width: none;
  padding: 0;
}

.offi-wordpress-content .offi-entry--elementor,
.offi-wordpress-content .offi-entry--elementor .offi-entry__content {
  width: 100%;
}

.offi-wordpress-content .offi-entry__title,
.offi-wordpress-content .offi-archive__title,
.offi-wordpress-content .offi-main--not-found h1 {
  max-width: 18ch;
  margin: 0 0 2rem;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.offi-wordpress-content .offi-entry__content {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.offi-wordpress-content .offi-entry__content > * {
  max-width: 72ch;
}

.offi-wordpress-content .offi-entry--elementor .offi-entry__content > * {
  max-width: none;
}

.offi-wordpress-content .offi-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--offi-line);
  border: 1px solid var(--offi-line);
}

.offi-wordpress-content .offi-card {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--offi-paper);
}

.offi-wordpress-content .offi-card__title {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.offi-wordpress-content .offi-card__title a {
  text-decoration: none;
}

.offi-wordpress-content .navigation.pagination {
  margin-top: 3rem;
}

.offi-wordpress-content .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.offi-wordpress-content .page-numbers,
.offi-wordpress-content .offi-button {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  text-decoration: none;
}

.offi-wordpress-content .page-numbers.current,
.offi-wordpress-content .offi-button:hover {
  background: var(--offi-ink);
  color: var(--offi-paper);
}

.offi-wordpress-content .offi-kicker {
  color: var(--offi-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.offi-wordpress-content .offi-wp-footer {
  background: var(--offi-ink);
  color: var(--offi-paper);
}

.offi-wordpress-content .offi-wp-footer__inner {
  min-height: 7rem;
}

.offi-wordpress-content .offi-wp-footer p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

@media (max-width: 52rem) {
  .offi-wordpress-content .offi-wp-header__inner,
  .offi-wordpress-content .offi-wp-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.25rem;
  }

  .offi-wordpress-content .offi-menu {
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
  }
}

/* Fully managed WordPress/Elementor site ----------------------------------- */
.offi-managed-shell,
.offi-managed-section,
.offi-managed-builder-section,
.offi-managed-landing-hero,
.offi-managed-landing-grid,
.offi-managed-detail-intro,
.offi-managed-detail-gallery,
.offi-managed-home-intro,
.offi-managed-home-geography,
.offi-managed-home-manufacturing,
.offi-managed-home-references,
.offi-managed-home-contact {
  width: min(100% - 2rem, 90rem);
  margin-inline: auto;
}

.offi-managed-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--offi-line);
  background: color-mix(in srgb, var(--offi-paper) 94%, transparent);
}

.offi-managed-header .offi-managed-shell {
  display: flex;
  min-height: 5rem;
  align-items: center;
  gap: 2rem;
}

.offi-managed-brand {
  margin-right: auto;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.offi-managed-brand .custom-logo {
  width: auto;
  max-height: 2.7rem;
}

.offi-managed-header .offi-menu,
.offi-managed-footer .offi-menu {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.4rem;
  list-style: none;
}

.offi-managed-header .offi-menu a,
.offi-managed-contact {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.offi-managed-nav-toggle {
  display: none;
  padding: 0.65rem 0.8rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.offi-managed-contact {
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
}

.offi-managed-footer {
  padding-block: clamp(3rem, 8vw, 7rem) 2rem;
  background: var(--offi-ink);
  color: var(--offi-paper);
}

.offi-managed-footer h2 {
  max-width: 15ch;
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.offi-managed-section,
.offi-managed-builder-section,
.offi-managed-landing-hero,
.offi-managed-landing-grid,
.offi-managed-detail-intro,
.offi-managed-home-intro,
.offi-managed-home-geography,
.offi-managed-home-manufacturing,
.offi-managed-home-references,
.offi-managed-home-contact {
  padding-block: clamp(3rem, 8vw, 8rem);
}

.offi-managed-landing-hero h1,
.offi-managed-detail-intro h1,
.offi-managed-home-hero h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.e-con.offi-managed-home-hero {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  position: relative;
  min-height: min(86vh, 62rem);
  padding: 0;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.e-con.offi-managed-home-hero.e-con-boxed > .e-con-inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: inherit;
  padding: 0;
}

.e-con.offi-managed-home-showcase.e-con-boxed > .e-con-inner,
.e-con.offi-managed-home-craft.e-con-boxed > .e-con-inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

.offi-managed-home-hero .elementor-widget-image,
.offi-managed-home-showcase .elementor-widget-image,
.offi-managed-home-craft .elementor-widget-image {
  width: 100%;
}

.offi-managed-home-hero .elementor-widget-image img {
  width: 100%;
  min-height: min(86vh, 62rem);
  object-fit: cover;
}

.offi-managed-home-hero > .elementor-widget-heading,
.offi-managed-home-hero > .elementor-widget-button,
.offi-managed-home-hero > .e-con-inner > .elementor-widget-heading,
.offi-managed-home-hero > .e-con-inner > .elementor-widget-button {
  position: absolute;
  z-index: 2;
  left: max(1rem, calc((100vw - 90rem) / 2));
}

.offi-managed-home-hero > .elementor-widget-heading,
.offi-managed-home-hero > .e-con-inner > .elementor-widget-heading {
  bottom: clamp(6rem, 13vw, 10rem);
  width: min(90vw, 70rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.offi-managed-home-hero > .elementor-widget-button,
.offi-managed-home-hero > .e-con-inner > .elementor-widget-button {
  bottom: clamp(2rem, 6vw, 5rem);
}

.offi-managed-home-showcase,
.offi-managed-home-craft {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.offi-managed-home-showcase img,
.offi-managed-home-craft img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
}

.offi-managed-grid {
  display: grid;
  grid-template-columns: repeat(var(--offi-columns, 3), minmax(0, 1fr));
  gap: 1px;
  background: var(--offi-line);
  border: 1px solid var(--offi-line);
}

.offi-managed-card {
  min-width: 0;
  background: var(--offi-paper);
}

.offi-managed-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e6e9e7;
}

.offi-managed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.offi-managed-card:hover .offi-managed-card__media img {
  transform: scale(1.025);
}

.offi-managed-card__body {
  padding: clamp(1.15rem, 2.5vw, 2rem);
}

.offi-managed-card__body h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.offi-managed-card__body h3 a {
  text-decoration: none;
}

.offi-managed-card__meta {
  margin: 0 0 0.65rem;
  color: var(--offi-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offi-managed-detail-gallery {
  display: grid;
  width: min(100% - 2rem, 110rem);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vw, 8rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.offi-managed-detail-gallery img {
  width: 100%;
  height: auto;
}

.offi-reference-grid {
  display: grid;
  grid-template-columns: repeat(var(--offi-columns, 6), minmax(0, 1fr));
  gap: 1rem;
}

.offi-reference-item {
  display: grid;
  min-height: 8rem;
  padding: 1rem;
  place-items: center;
  border: 1px solid var(--offi-muted);
  background: var(--offi-line);
  text-align: center;
}

.offi-reference-item img {
  width: min(7rem, 70%);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.08) brightness(1.04);
}

.offi-managed-form {
  width: min(100%, 54rem);
}

.offi-managed-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.offi-managed-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offi-managed-form input,
.offi-managed-form textarea,
.offi-managed-form select {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--offi-ink);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.offi-managed-form__wide {
  grid-column: 1 / -1;
}

.offi-managed-form button {
  margin-top: 1.5rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--offi-ink);
  background: var(--offi-ink);
  color: var(--offi-paper);
  cursor: pointer;
}

.offi-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

.offi-managed-form__status.is-error {
  color: #a12622;
}

@media (max-width: 64rem) {
  .offi-managed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offi-reference-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .offi-managed-header .offi-managed-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 4.5rem;
    padding-block: 1rem;
    gap: 1rem;
  }

  .offi-managed-header .offi-managed-brand {
    align-self: center;
  }

  .offi-managed-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .offi-managed-header nav,
  .offi-managed-header .offi-managed-contact {
    grid-column: 1 / -1;
  }

  .offi-nav-ready .offi-managed-header nav {
    display: none;
  }

  .offi-nav-ready .offi-managed-header.is-nav-open nav {
    display: block;
  }

  .offi-managed-header .offi-menu {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.5rem;
  }

  .offi-managed-header .offi-managed-contact {
    width: fit-content;
  }

  .offi-managed-grid,
  .offi-managed-detail-gallery,
  .offi-managed-form__grid {
    grid-template-columns: 1fr;
  }

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