/* ============================================
   Azimut Solar Enerji — main.css
   Stack: Saf CSS, framework yok
   Color System: Amber CTA / Anthracite Secondary
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Primary CTA — Amber (logo dominant) */
  --color-primary: #CF9A2C;
  --color-primary-hover: #B8831F;
  --color-primary-active: #A8741B;
  --color-primary-light: #FDF5E6;

  /* Secondary — Anthracite */
  --color-secondary: #5A6472;
  --color-secondary-hover: #495260;
  --color-secondary-active: #3D4652;

  /* Success — Green (state only, not CTA) */
  --color-success: #1D9E75;
  --color-success-hover: #178562;
  --color-success-light: #E1F5EE;

  /* Danger — Red (state only, not CTA) */
  --color-danger: #C4282D;
  --color-danger-hover: #A61F24;
  --color-danger-light: #FDE8E8;

  /* Text */
  --color-text: #1A1A1A;
  --color-text-soft: #4B5563;

  /* Surface */
  --color-border: #D9DDE3;
  --color-surface-muted: #F5F7F9;
  --color-bg: #ffffff;
  --color-bg-secondary: #f9fafb;

  /* Tag accents (cards only) */
  --color-amber: #854F0B;
  --color-amber-light: #FAEEDA;
  --color-blue: #185FA5;
  --color-blue-light: #E6F1FB;
  --color-gray: #5F5E5A;
  --color-gray-light: #F1EFE8;

  /* Radii & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-bg-secondary);
}

/* --- Hero with Image --- */
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  /* Mobilde H1/CTA görselden önce kalır — SEO-first, fold üstü metin */
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Nav Phone — sadece geniş desktop */
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav__phone:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}
@media (max-width: 1200px) {
  .nav__phone { display: none; }
}

/* Nav CTA — Primary (Amber + dark text) */
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--color-primary);
  color: #1A1A1A;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  color: #1A1A1A;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s;
}

/* --- Trust Badge --- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  padding: 72px 0;
}

.hero__badge {
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.nowrap { white-space: nowrap; }

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin-bottom: 0;
  max-width: 58ch;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--color-text-soft);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

/* Primary — Amber + dark text (ALWAYS #1A1A1A) */
.btn--primary {
  background: var(--color-primary);
  color: #1A1A1A;
  border: 1px solid var(--color-primary);
  padding: 18px 36px;
  min-height: 56px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  text-decoration: none;
  color: #1A1A1A;
}

.btn--primary:active {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
  color: #1A1A1A;
}

/* Secondary Outline — Anthracite */
.btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.btn--outline:hover {
  background: rgba(90, 100, 114, 0.08);
  text-decoration: none;
}

.btn--outline:active {
  background: rgba(90, 100, 114, 0.14);
}

/* --- Snippet Strip --- */
.snippet-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0;
}

.snippet-strip__label {
  font-size: 0.8125rem;
  color: var(--color-text-soft);
  font-weight: 500;
}

.snippet-strip a {
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-soft);
  transition: background 0.2s;
}

.snippet-strip a:hover {
  background: var(--color-surface-muted);
  text-decoration: none;
}

/* --- Kapasite CTA Banner --- */
.kapasite-cta {
  background: linear-gradient(135deg, #0b3d2e, #1a5c45);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 768px) {
  .kapasite-cta {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }
  .kapasite-cta .btn { width: 100%; }
}

/* --- Service Cards --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-card__tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Tag colors — kept distinct for visual scanning */
.tag--ongrid {
  background: var(--color-primary-light);
  color: var(--color-primary-active);
}

.tag--hibrit {
  background: var(--color-amber-light);
  color: var(--color-amber);
}

.tag--ges {
  background: var(--color-blue-light);
  color: var(--color-blue);
}

.tag--depolama {
  background: var(--color-gray-light);
  color: var(--color-gray);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

/* --- Cost Table --- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cost-table th,
.cost-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.cost-table th {
  font-weight: 500;
  color: var(--color-text-soft);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cost-table__note {
  font-size: 0.8125rem;
  color: var(--color-text-soft);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Tablo responsive wrapper — mobilde yatay scroll */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Form Status Messages --- */
.form__status {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  display: none;
}

.form__status--success {
  display: block;
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form__status--error {
  display: block;
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.form__status--missing {
  display: block;
  background: var(--color-amber-light);
  color: var(--color-amber);
  border: 1px solid #F59E0B;
}

/* --- Reference Cards --- */
.ref-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ref-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.ref-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ref-card__body {
  padding: 1.25rem;
}

.ref-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-soft);
  margin-bottom: 0.5rem;
}

.ref-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-text-soft);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item__answer {
  padding-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* --- Form --- */
.form {
  max-width: 600px;
}

.form__group {
  margin-bottom: 1rem;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer__brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__nap {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.375rem;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-soft);
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--color-text-soft);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep::before {
  content: "/";
  margin: 0 0.125rem;
}

/* --- Update Badge --- */
.update-badge {
  font-size: 0.8125rem;
  color: var(--color-text-soft);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 32px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 38px);
    max-width: none;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* İletişim ve form 2-kolon → tek kolon */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Tablo mobilde yatay scroll */
  .cost-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .cost-table th,
  .cost-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Snippet strip — mobilde kontrollü scroll */
  .snippet-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }
  .snippet-strip__label {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }
  .snippet-strip a {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }

  /* Section padding azalt */
  .section {
    padding: 2.5rem 0;
  }

  /* Hero H1 mobile */
  .hero h1 {
    max-width: none;
    font-size: 2.4rem;
    line-height: 1.1;
  }
}

/* --- Media Grid (video showcase) --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-card);
}
.ratio { position: relative; width: 100%; }
.ratio--video { padding-bottom: 56.25%; }
.ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- OŞARJ Grid --- */
.osarj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) {
  .osarj-grid { grid-template-columns: 1fr; }
}

/* --- Certificate Grid --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.cert-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.cert-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.cert-card img {
  max-height: 280px;
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
