/* ===== CEO Group İnşaat & Gayrimenkul Mersin - Premium Kurumsal Site ===== */
:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f5;
  --color-primary: #0B1B3D; /* Deep Navy Blue */
  --color-primary-light: #162c5b;
  --color-accent: #C5A059; /* Champagne Gold */
  --color-accent-hover: #D7B46F;
  --color-text: #2A303C; /* Deep Slate Gray */
  --color-text-muted: #5e6675;
  --color-border: #e4e7ec;
  
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 4px 12px rgba(11, 27, 61, 0.04);
  --shadow: 0 10px 30px rgba(11, 27, 61, 0.08);
  --shadow-hover: 0 20px 40px rgba(11, 27, 61, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

.text-accent {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.center {
  text-align: center;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo-ceo {
  color: var(--color-primary);
}

.logo-group {
  color: var(--color-accent);
}

.logo-city {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.header-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition);
}

.header .social-icon:hover {
  color: var(--color-accent);
}

.header .social-icon .icon {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 0;
  }

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

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 12rem;
  background-color: var(--color-primary);
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 27, 61, 0.95) 0%, rgba(11, 27, 61, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 40px;
}

.hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 0 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}

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

/* ----- Hero Stats ----- */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: 2.5rem 0;
  z-index: 2;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--color-border);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.stat-num::after {
  content: '+';
  color: var(--color-accent);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .stat:not(:last-child)::after {
    display: none;
  }
  .stat-num {
    font-size: 2rem;
  }
}

/* ----- Sections Common ----- */
.section {
  padding: 8rem 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--color-primary);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 0 3rem;
}

.section-header.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ----- About ----- */
.about-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.about-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.about-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about-card {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, transparent 50%, rgba(197, 160, 89, 0.1) 50%);
}

.about-card-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: white;
}

.about-card p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----- Services ----- */
.services {
  background: var(--color-surface-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Projects ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  group: project;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  height: 260px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,27,61,0.8), transparent);
  opacity: 0.6;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 0.3;
}

.project-card:hover .project-image {
  transform: scale(1.05); /* Requires layout adjusting if parent isn't rigid, but with bg-image it's complex. Better to scale a pseudo element or inner img */
}

.project-info {
  padding: 2rem;
  background: var(--color-surface); /* Ensure over background if zooming image */
  position: relative;
  z-index: 2;
}

.project-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.project-info h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.project-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- CTA Section ----- */
.cta-section {
  background: var(--color-primary);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.1);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-title {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-desc {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Contact ----- */
.contact-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.contact-list li:last-child {
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  background: rgba(197, 160, 89, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.contact-list a:hover {
  color: var(--color-accent);
}

.contact-note {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-links-box {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.contact-links-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.contact-links-box .contact-links-title:not(:first-child) {
  margin-top: 1.25rem;
}

.contact-links-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.contact-links-list li {
  margin-bottom: 0.35rem;
}

.contact-links-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-links-list a:hover {
  color: var(--color-accent);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-social .social-icon {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--color-bg);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-social .social-icon:hover {
  background: var(--color-accent);
  color: white;
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.75rem;
  margin: 0 0 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* ----- Footer ----- */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-ceo {
  color: white;
}

.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.7;
}

.footer-links-col h4 {
  color: white;
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
