
/*
Theme Name: Turkish Builder Luxury
Theme URI: https://turkishbuilder.com
Author: TURKISH BUILDER
Description: Premium five-language villa construction and property development theme with built-in property listings.
Version: 2.0.1
Requires PHP: 7.4
Text Domain: turkishbuilder-luxury
*/

:root {
  --navy: #102936;
  --night: #091e29;
  --copper: #c8a56e;
  --ivory: #f6f3ed;
  --paper: #fff;
  --ink: #253943;
  --muted: #65737a;
  --line: #e7e1d7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #aa824b;
}

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

.wrap {
  max-width: 1240px;
  padding: 0 30px;
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -10000px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 10px;
  z-index: 999;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(11,29,40,.04);
}

.head {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 88px;
}

.brand {
  font-size: 21px;
  letter-spacing: .15em;
  white-space: nowrap;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.brand span {
  color: #b28d55;
}

.head nav {
  margin-left: auto;
}

.head nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.head nav a {
  font-size: 13px;
  font-weight: 600;
}

.head nav a[aria-current=page] {
  color: #a77e43;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions select {
  padding: 9px 8px;
  max-width: 120px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-size: 12px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--copper);
  color: var(--night);
  padding: 13px 22px;
  font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid var(--copper);
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  background: #d8b985;
  color: var(--night);
}

.btn.outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.75);
}

.btn.outline:hover {
  background: white;
  color: var(--night);
}

.btn.dark-btn {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.btn.dark-btn:hover {
  background: #274553;
}

.menu-toggle {
  display: none;
}

/* HERO */

.hero {
  min-height: 700px;
  background:
    linear-gradient(
      90deg,
      rgba(8,29,39,.93) 0%,
      rgba(8,29,39,.67) 48%,
      rgba(8,29,39,.18) 100%
    ),
    url('assets/hero.jpg') center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-inner {
  width: 100%;
  padding-top: 110px;
  padding-bottom: 120px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .23em;
  text-transform: uppercase;
  font-weight: 700;
  color: #b99259;
}

.hero .eyebrow {
  color: #dfbc86;
}

.hero h1,
.page-hero h1 {
  font: normal clamp(48px,6.2vw,86px)/1.09 Georgia,'Times New Roman',serif;
  letter-spacing: -.025em;
  max-width: 870px;
  margin: 20px 0 26px;
}

.hero p {
  font-size: 19px;
  max-width: 680px;
  line-height: 1.8;
  color: #f3f1ec;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-bottom {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .17em;
  color: #e7e1d7;
}

/* SECTIONS */

.section {
  padding: 100px 0;
}

.cream {
  background: var(--ivory);
}

.dark {
  background: var(--navy);
  color: white;
}

.section h2,
.page-content h2 {
  font: normal clamp(34px,4.2vw,55px)/1.15 Georgia,'Times New Roman',serif;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 14px 0 24px;
}

.dark h2 {
  color: white;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 55px;
  margin-bottom: 35px;
}

.section-heading h2 {
  max-width: 700px;
}

.section-heading p {
  max-width: 380px;
  color: var(--muted);
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.card {
  background: #fff;
  padding: 34px;
  border: 1px solid var(--line);
  min-height: 245px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(20,43,56,.07);
}

.card b {
  color: #b48b52;
  font-size: 13px;
  letter-spacing: .12em;
}

.card h3,
.property-card h3,
.location-tile h3 {
  font: normal 26px/1.22 Georgia,serif;
  color: var(--navy);
  margin: 22px 0 14px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* CONTENT LAYOUT */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split p {
  max-width: 600px;
}

.image-frame {
  background: var(--ivory);
  padding: 12px;
}

.image-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

.text-link {
  color: #8d6b3d;
  font-weight: 700;
  border-bottom: 1px solid #8d6b3d;
  padding-bottom: 6px;
  display: inline-block;
  margin-top: 18px;
}

/* LOCATIONS */

.location-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.location-grid > a,
.location-tile {
  background: white;
  border: 1px solid var(--line);
  padding: 23px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  font-weight: 700;
  color: var(--navy);
}

.location-grid > a:hover {
  border-color: var(--copper);
}

.location-tile {
  display: block;
}

.location-tile h3 {
  margin: 0 0 16px;
}

.location-tile a {
  font-size: 13px;
  color: #987347;
}

.section-action {
  margin-top: 32px;
}

/* CLOSING SECTION */

.closing {
  padding: 105px 0;
}

.closing h2 {
  max-width: 750px;
}

.closing p {
  max-width: 670px;
  margin-bottom: 30px;
  color: #d4e0e4;
}

/* INNER PAGES */

.page-hero {
  background: linear-gradient(115deg,#102936,#23495a);
  color: white;
  padding: 110px 0 105px;
}

.page-hero h1 {
  font-size: clamp(43px,5vw,68px);
  max-width: 900px;
}

.page-hero p {
  max-width: 780px;
  color: #dce6e9;
  font-size: 19px;
}

/* PROPERTIES */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

.property-card {
  border: 1px solid var(--line);
  background: white;
}

.property-card img,
.property-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.property-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9d7d1;
  color: var(--navy);
  letter-spacing: .15em;
}

.property-card-body {
  padding: 22px;
}

.property-card h3 {
  margin: 12px 0;
}

.property-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.property-card strong {
  color: var(--navy);
  font-size: 19px;
}

.property-main-image {
  width: 100%;
  height: auto;
}

.property-info {
  background: var(--ivory);
  padding: 35px;
  align-self: start;
}

.property-info h2 {
  margin-top: 0;
}

.property-description {
  margin-top: 28px;
}

/* ENQUIRY FORM */

.tb-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.tb-form label {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.tb-form input,
.tb-form textarea,
.tb-form select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #c8cdd0;
  border-radius: 2px;
  font: inherit;
  margin-top: 6px;
  background: white;
  color: var(--ink);
}

.tb-form .wide {
  grid-column: 1/-1;
}

.tb-honey {
  position: absolute;
  left: -9999px;
}

.form-notice {
  padding: 16px;
  background: var(--ivory);
  margin-bottom: 20px;
}

.contact-layout {
  align-items: start;
}

/* FOOTER */

.footer {
  background: var(--night);
  color: #c8d4d9;
  padding: 70px 0 20px;
}

.footer .brand {
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 470px;
  font-size: 13px;
}

.footer-inner strong {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #29414b;
  padding-top: 22px;
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
}

/* ARABIC RTL SUPPORT */

.tb-rtl {
  font-family: Tahoma,Arial,sans-serif;
}

.tb-rtl .hero {
  background:
    linear-gradient(
      270deg,
      rgba(8,29,39,.93) 0%,
      rgba(8,29,39,.67) 48%,
      rgba(8,29,39,.18) 100%
    ),
    url('assets/hero.jpg') center/cover no-repeat;
}

.tb-rtl .head nav {
  margin-left: 0;
  margin-right: auto;
}

.tb-rtl .card h3,
.tb-rtl h1,
.tb-rtl h2 {
  font-family: Tahoma,Arial,sans-serif;
}

.tb-rtl .tb-honey {
  left: auto;
  right: -9999px;
}

/* RESPONSIVE HEADER */

@media (max-width:1150px) {
  .head {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .head nav {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .head nav ul {
    justify-content: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }
}

/* TABLETS */

@media (max-width:800px) {
  .wrap {
    padding: 0 22px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding-top: 90px;
    padding-bottom: 100px;
  }

  .section {
    padding: 70px 0;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-heading {
    display: block;
  }

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

  .image-frame img {
    height: 330px;
  }
}

/* MOBILE */

@media (max-width:620px) {
  .head {
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    padding: 8px 12px;
    background: white;
    font-size: 20px;
  }

  .head nav {
    display: none;
  }

  .head nav.open {
    display: block;
  }

  .head nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .head nav li a {
    display: block;
    padding: 8px;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-actions select {
    max-width: 95px;
  }

  .hero {
    min-height: 570px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-bottom {
    font-size: 8px;
  }

  .cards,
  .property-grid,
  .location-grid,
  .tb-form {
    grid-template-columns: 1fr;
  }

  .tb-form .wide {
    grid-column: 1;
  }

  .footer-inner,
  .footer-bottom {
    display: block;
  }

  .page-hero {
    padding: 75px 0;
  }

  .section-heading h2 {
    font-size: 36px;
  }
}

/* NAVIGATION IMPROVEMENTS */

/* Desktop navigation */
@media (min-width:1151px) {
  .head {
    gap: 14px;
  }

  .head nav ul {
    gap: 12px;
  }

  .head nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .brand {
    font-size: 19px;
    letter-spacing: .12em;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .header-cta {
    padding: 12px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Tablet navigation */
@media (min-width:621px) and (max-width:1150px) {
  .head nav a {
    white-space: nowrap;
  }

  .head nav ul {
    gap: 14px;
    flex-wrap: wrap;
  }
}

/* Arabic navigation */
.tb-rtl .head nav a {
  white-space: nowrap;
}
