/* ============================================================
   ÖNİS Mimarlık ve Mühendislik – Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:        #C4945A;
  --gold-light:  #D4AA76;
  --dark:        #111111;
  --dark-2:      #1C1C1C;
  --white:       #FFFFFF;
  --bg-light:    #F7F4F0;
  --text:        #2E2E2E;
  --text-muted:  #888888;
  --border:      #E6E1DA;
  --ease:        0.3s ease;
  --shadow:      0 8px 40px rgba(0,0,0,0.08);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Helpers ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section   { padding: 100px 0; }

.section-label {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 580px;
}

/* Divider line */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 28px;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.48s; }
.d6 { transition-delay: 0.58s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--ease);
}
.btn-gold    { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost   { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-dark    { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn-dark:hover  { background: var(--dark); color: var(--white); }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 8px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: var(--dark);
  padding: 2px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo inside nav */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 100px; width: auto; }

.nav-links {
  display: flex;
  gap: 38px;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links .cta-link {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
}
.nav-links .cta-link::after { display: none; }
.nav-links .cta-link:hover { background: var(--gold-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: var(--ease);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--dark-2);
  z-index: 1100;
  padding: 80px 40px 40px;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open { right: 0; }

.mobile-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none; border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 26px; }
.mobile-menu-links a {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  transition: color var(--ease);
}
.mobile-menu-links a:hover { color: var(--gold); }

.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1050;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.visible { opacity: 1; pointer-events: all; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  transform: scale(1.04);
  animation: heroBgZoom 20s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 120px 24px 0;
}
.hero-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-text {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  max-width: 540px;
  margin: 0 auto 50px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color var(--ease);
}
.hero-scroll:hover { color: var(--gold); }
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: dropLine 2.2s ease-in-out infinite;
}
@keyframes dropLine {
  0%  { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  41% { transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark-2);
  border-top:    1px solid rgba(196,148,90,0.18);
  border-bottom: 1px solid rgba(196,148,90,0.18);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat-item {
  text-align: center;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}


/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.about-img-border {
  position: absolute;
  bottom: -22px; right: -22px;
  width: 180px; height: 180px;
  border: 2px solid var(--gold);
  z-index: -1;
  pointer-events: none;
}
.about-content { padding-right: 10px; }
.about-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 20px;
}
.about-features {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
}
.about-features li::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-light); }
.services-hd { text-align: center; margin-bottom: 60px; }
.services-hd .section-sub { margin: 0 auto; }
.services-hd .gold-line { margin: 20px auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3px;
}
.srv-card {
  background: var(--white);
  padding: 48px 38px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.srv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.srv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.srv-card:hover::after { transform: scaleX(1); }

.srv-num {
  position: absolute;
  top: 20px; right: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  color: rgba(0,0,0,0.035);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.srv-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 22px;
}
.srv-icon svg { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.srv-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}
.srv-text { font-size: 14px; color: var(--text-muted); line-height: 1.85; }


/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--white); }
.projects-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.prj-grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 14px;
}
/* Masonry-style spans */
.prj-card:nth-child(1) { grid-column: span 12; }

.prj-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.prj-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.65s ease;
  display: block;
}
.prj-card:nth-child(1) img { height: 420px; }

.prj-card:hover img { transform: scale(1.07); }

.prj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px;
}
.prj-card:hover .prj-overlay { opacity: 1; }

.prj-cat {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.prj-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
}
.prj-loc { font-size: 12px; color: rgba(255,255,255,0.55); }


/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* Left – info */
.contact-info-text { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.cd-item { display: flex; align-items: flex-start; gap: 16px; }
.cd-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cd-icon svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; }
.cd-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.cd-value { font-size: 14px; color: var(--dark); line-height: 1.5; }
.cd-value a { transition: color var(--ease); }
.cd-value a:hover { color: var(--gold); }

.contact-map { border: 1px solid var(--border); overflow: hidden; }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

/* Right – form */
.contact-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-form-wrap p { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group label {
  display: block;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.form-note a { color: var(--gold); }

.form-success, .form-error {
  display: none;
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}
.form-success { background: #eef6e5; border: 1px solid #b6d98a; color: #3e6b14; }
.form-error   { background: #fdf0f0; border: 1px solid #e9aeae; color: #8b2020; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand col */
.footer-brand .f-logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 5px;
  display: block;
}
.footer-brand .f-logo-sub {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: rgba(196,148,90,0.55);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}
.footer-brand p { font-size: 13px; line-height: 1.9; max-width: 280px; }

.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: all var(--ease);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* Link cols */
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 24px;
}
.footer-links { display: flex; flex-direction: column; gap: 13px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 9px;
  transition: color var(--ease);
}
.footer-links a::before { content: '—'; color: var(--gold); font-size: 10px; }
.footer-links a:hover { color: var(--gold); }

.f-contact-list { display: flex; flex-direction: column; gap: 15px; }
.f-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.f-contact-list svg { width: 13px; height: 13px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }

/* Bottom bar */
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--gold); opacity: 0.6; transition: opacity var(--ease); }
.footer-bottom a:hover { opacity: 1; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--gold);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: all 0.35s ease;
  z-index: 800;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-light); }
.scroll-top svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2.5; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .prj-grid { grid-template-columns: repeat(2,1fr); }
  .prj-card:nth-child(n) { grid-column: span 1; }
  .prj-card img,
  .prj-card:nth-child(1) img { height: 260px; }
  .contact-grid { gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-border { display: none; }
  .about-content { padding-right: 0; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }

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

  .prj-grid { grid-template-columns: 1fr; }
  .prj-card img,
  .prj-card:nth-child(1) img { height: 240px; }
  .prj-overlay { opacity: 1; }

  .projects-hd { flex-direction: column; align-items: flex-start; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}
