/* =========================================================
   VIMAR İNŞAAT LANDING PAGE
   DESKTOP + MOBILE
   ========================================================= */

:root {
  --paper: #fbf7ee;
  --ink: #1f211d;
  --muted: #625d55;
  --line: #d9cdbd;
  --copper: #a56f49;
  --green: #2f5228;
  --green-hover: #274521;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --baskerville: "Libre Baskerville", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;

  width: 100%;
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  padding: 0;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--sans);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}


/* =========================================================
   ANA SAYFA YAPISI
   ========================================================= */

.landing-shell {
  width: 100%;
  min-width: 100%;
  max-width: none;

  min-height: 100svh;

  margin: 0;
  padding: 0;

  display: grid;

  /*
     Masaüstü:
     Sol hero yaklaşık %58.2
     Sağ form yaklaşık %41.8
  */
  grid-template-columns:
    minmax(0, 58.2fr)
    minmax(560px, 41.8fr);

  gap: 0;

  overflow: hidden;
}


/* =========================================================
   HERO — DESKTOP
   ========================================================= */

.hero {
  position: relative;

  width: 100%;
  min-width: 0;
  max-width: none;

  height: 100svh;
  min-height: 100svh;

  margin: 0;
  padding: 0;

  overflow: hidden;

  /*
     MASAÜSTÜ GÖRSEL
     Logo ve tüm sloganlar görselin içinde.
  */
  background-image: url("assets/tas-ev.webp");

  background-repeat: no-repeat;

  /*
     Görseli hero alanına tamamen oturtur.
     Kenarlarda gri/boş alan bırakmaz.
     Görselin içine gömülü yazıları kırpmaz.
  */
  background-size: 100% 100%;
  background-position: center center;

  background-color: #1572bf;
}


/* =========================================================
   ESKİ HTML HERO ELEMANLARI

   HTML içinde yanlışlıkla kalsalar bile
   ekranda kesinlikle görünmezler.

   Logo + üst slogan + alt slogan artık görselin içinde.
   ========================================================= */

.hero__logo,
.hero__headline-wrap,
.hero__title,
.hero__title-line,
.hero__title-line--accent,
.hero__description {
  display: none !important;
}


/*
   Görsel zaten son haliyle hazır.
   Ekstra overlay / gradient istemiyoruz.
*/

.hero::before,
.hero::after,
.hero__overlay {
  display: none !important;
}


/* =========================================================
   SAĞ FORM PANELİ
   ========================================================= */

.contact-panel {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 100svh;

  margin: 0;
  padding: 0;

  background: var(--paper);

  border-left: 3px solid var(--copper);
}


/* =========================================================
   SAĞ PANEL İÇERİĞİ
   ========================================================= */

.contact-panel__inner {
  width: 100%;
  max-width: 760px;

  min-height: 100svh;

  margin: 0 auto;

  padding:
    clamp(72px, 9vh, 96px)
    clamp(42px, 3.4vw, 60px)
    24px;

  display: flex;
  flex-direction: column;
}


/* =========================================================
   MARKA
   ========================================================= */

.brand-lockup {
  margin: 0 0 clamp(40px, 5.2vh, 52px);
}

.brand-lockup__name {
  margin: 0;

  color: var(--ink);

  font-family: var(--serif);

  font-size: clamp(31px, 2.1vw, 38px);
  font-weight: 700;

  line-height: 1;

  letter-spacing: -0.025em;
}

.brand-lockup__tagline {
  margin: 11px 0 0;
  color: #8d5b3d;
  font-family: var(--baskerville);
  font-size: clamp(9px, 0.69vw, 11px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.07em;
  white-space: nowrap;
}


/* =========================================================
   FORM BAŞLIĞI
   ========================================================= */

.form-heading {
  margin: 0 0 30px;
}

.form-heading h1,
.form-heading h2 {
  margin: 0 0 9px;

  color: var(--ink);

  font-family: var(--serif);

  font-size: clamp(30px, 2vw, 37px);
  font-weight: 700;

  line-height: 1.05;

  letter-spacing: -0.025em;
}

.form-heading p {
  margin: 0;

  color: #4e4942;

  font-family: var(--sans);

  font-size: 12px;
  font-weight: 400;

  line-height: 1.55;
}


/* =========================================================
   FORM
   ========================================================= */

.lead-form {
  position: relative;

  width: 100%;
}

.lead-form__grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: 18px;
  row-gap: 21px;
}

.field {
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}


/* =========================================================
   FORM LABEL
   ========================================================= */

.field label {
  display: block;

  margin: 0 0 8px;

  color: #544e47;

  font-size: 10px;
  font-weight: 600;

  line-height: 1.2;

  letter-spacing: 0.08em;
}


/* =========================================================
   INPUT / TEXTAREA
   ========================================================= */

.field input,
.field textarea {
  display: block;

  width: 100%;

  margin: 0;

  border: 1px solid var(--line);
  border-radius: 1px;

  background: #fffdfa;

  color: var(--ink);

  outline: none;

  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.field input {
  height: 52px;

  padding: 0 14px;

  font-size: 12px;
}

.field textarea {
  min-height: 100px;

  padding: 14px;

  resize: vertical;

  font-size: 12px;

  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa196;

  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-color: #a78568;

  box-shadow:
    0 0 0 2px rgba(165, 111, 73, 0.08);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #9f493e;
}


/* =========================================================
   FORM ALT NOTU
   Özel nitelikli veri uyarısı eklenirse kullanılır.
   ========================================================= */

.field-note {
  display: block;

  margin-top: 7px;

  color: #827a70;

  font-size: 9px;

  line-height: 1.45;
}


/* =========================================================
   KVKK
   ========================================================= */

.consent {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  margin: 28px 0;

  color: #5f584f;

  font-size: 10px;

  line-height: 1.5;

  cursor: pointer;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;

  flex: 0 0 15px;

  width: 15px;
  height: 15px;

  margin: 1px 0 0;

  border: 1px solid #8e8a83;
  border-radius: 1px;

  background: #fffdfa;

  display: grid;
  place-items: center;

  cursor: pointer;
}

.consent input::after {
  content: "";

  width: 7px;
  height: 4px;

  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform:
    rotate(-45deg)
    scale(0);

  transition:
    transform 0.12s ease;
}

.consent input:checked {
  border-color: var(--green);

  background: var(--green);
}

.consent input:checked::after {
  transform:
    rotate(-45deg)
    scale(1);
}

.consent a {
  color: #8e5f43;

  text-decoration: underline;

  text-underline-offset: 2px;
}


/* =========================================================
   GÖNDER BUTONU
   ========================================================= */

.submit-button {
  display: block;

  width: 100%;
  height: 54px;

  margin: 0;

  padding: 0 20px;

  border: 0;
  border-radius: 1px;

  background: var(--green);

  color: #fff;

  font-family: var(--sans);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.035em;

  cursor: pointer;

  transition:
    background 0.16s ease,
    transform 0.1s ease,
    opacity 0.16s ease;
}

.submit-button:hover {
  background: var(--green-hover);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;

  opacity: 0.75;
}


/* =========================================================
   FORM DURUM MESAJI
   ========================================================= */

.form-status {
  min-height: 17px;

  margin: 9px 0 0;

  color: #815a3f;

  font-size: 10px;

  line-height: 1.45;
}


/* =========================================================
   AYIRICI
   ========================================================= */

.contact-divider {
  width: 100%;
  height: 1px;

  margin-top: 8px;

  background: var(--line);
}


/* =========================================================
   TELEFON
   ========================================================= */

.phone-link {
  margin-top: 19px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  color: #302e2a;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;
}

.phone-link svg {
  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  color: #9a613e;
}


/* =========================================================
   FOOTER
   ========================================================= */

.panel-footer {
  margin-top: auto;

  padding-top: 30px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 9px;

  color: #645e55;

  font-family: var(--serif);

  font-size: 15px;

  line-height: 1.4;
}

.panel-footer__link {
  text-decoration: none;
}

.panel-footer__link:hover {
  text-decoration: underline;

  text-underline-offset: 3px;
}

.panel-footer__separator {
  color: #9a8f81;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.submit-button:focus-visible,
.consent input:focus-visible,
.phone-link:focus-visible,
.consent a:focus-visible,
.panel-footer a:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid #7e674f;

  outline-offset: 3px;
}


/* =========================================================
   TABLET / DAR MASAÜSTÜ
   1050px altında görsel üste, form alta geçer.
   ========================================================= */

@media (max-width: 1050px) {

  .landing-shell {
    display: block;

    width: 100%;

    min-height: 0;

    overflow: visible;
  }


  /*
     769px - 1050px arası hâlâ masaüstü hero görselini kullanır.
     Görselin tamamı görünür.
  */

  .hero {
    width: 100%;

    height: auto;
    min-height: 0;

    /*
       Desktop görsel oranını mümkün olduğunca koruyoruz.
    */
    aspect-ratio: 1 / 1;

    background-image: url("assets/tas-ev.webp");

    background-repeat: no-repeat;

    background-size: 100% 100%;

    background-position: center center;
  }


  .contact-panel {
    width: 100%;

    min-height: auto;

    border-left: 0;

    border-top:
      3px solid var(--copper);
  }


  .contact-panel__inner {
    width: min(100%, 720px);

    max-width: 720px;

    min-height: auto;

    padding:
      58px
      32px
      36px;
  }


  .brand-lockup__tagline {
    white-space: normal;
  }


  .panel-footer {
    margin-top: 44px;
  }

}


/* =========================================================
   MOBİL

   Ayrı dikey görsel:
   assets/tas-ev-mobile.webp

   Önerilen oran: 9 / 16
   Örneğin:
   1080 × 1920
   veya
   900 × 1600

   Görselde:
   - logo
   - ana slogan
   - alt slogan

   zaten hazır olmalı.
   ========================================================= */

@media (max-width: 768px) {

  .landing-shell {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
  }


  .hero {
    width: 100%;

    /*
       Mobil görseli ekran genişliğine göre
       tam 9:16 oranında gösteriyoruz.
    */
    height: auto;
    min-height: 0;

    aspect-ratio: 9 / 16;

    margin: 0;
    padding: 0;

    background-image:
      url("assets/tas-ev-mobile.webp");

    background-repeat: no-repeat;

    /*
       Görselin hiçbir kısmı kırpılmaz.
       Yazıların tamamı görünür.
       Kenarlarda boşluk bırakmaz.
    */
    background-size: 100% 100%;

    background-position:
      center center;

    background-color: #4c8bd0;
  }


  /*
     HTML'deki hero öğeleri kesinlikle görünmez.
  */

  .hero__logo,
  .hero__headline-wrap,
  .hero__title,
  .hero__title-line,
  .hero__title-line--accent,
  .hero__description,
  .hero__overlay {
    display: none !important;
  }


  .contact-panel {
    width: 100%;

    min-height: auto;

    border-left: 0;

    border-top:
      3px solid var(--copper);
  }


  .contact-panel__inner {
    width: 100%;

    max-width: none;

    min-height: auto;

    margin: 0;

    padding:
      42px
      22px
      30px;
  }


  .brand-lockup {
    margin-bottom: 31px;
  }


  .brand-lockup__name {
    font-size: 30px;
  }


  .brand-lockup__tagline {
    margin-top: 10px;

    font-size: 9px;

    line-height: 1.7;

    letter-spacing: 0.06em;

    white-space: normal;
  }


  .form-heading {
    margin-bottom: 26px;
  }


  .form-heading h1,
  .form-heading h2 {
    font-size: 29px;

    line-height: 1.1;
  }


  .form-heading p {
    font-size: 11px;

    line-height: 1.6;
  }


  /*
     Mobilde AD / SOYAD / E-POSTA / TELEFON
     tek kolon.
  */

  .lead-form__grid {
    grid-template-columns: 1fr;

    column-gap: 0;
    row-gap: 17px;
  }


  .field--wide {
    grid-column: auto;
  }


  .field label {
    margin-bottom: 7px;

    font-size: 10px;
  }


  .field input {
    height: 50px;

    padding:
      0 13px;
  }


  .field textarea {
    min-height: 115px;

    padding: 13px;
  }


  .consent {
    margin:
      23px
      0
      24px;

    font-size: 10px;

    line-height: 1.55;
  }


  .submit-button {
    height: 52px;
  }


  .contact-divider {
    margin-top: 12px;
  }


  .phone-link {
    margin-top: 20px;

    font-size: 13px;
  }


  .panel-footer {
    margin-top: 44px;

    padding-top: 22px;

    font-size: 14px;

    gap: 7px;
  }

}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */

@media (max-width: 390px) {

  .contact-panel__inner {
    padding:
      36px
      18px
      26px;
  }


  .brand-lockup__name {
    font-size: 28px;
  }


  .form-heading h1,
  .form-heading h2 {
    font-size: 27px;
  }


  .panel-footer {
    font-size: 13px;
  }

}


/* =========================================================
   HAREKET AZALTMA
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition: none !important;
  }

}