/*
Theme Name: Gilic Systems - Real Estate Edition
Theme URI: https://gilicsystems.com
Description: Real Estate Lead Automation Landing Page for Gilic Systems
Author: Gilic Systems
Version: 4.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

h1 {
  font-size: 56px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 42px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
}

p {
  font-size: 18px;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 16px;
}

/* Modal Popup */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 40px 40px 24px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f8f9fa;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #666;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e5e5e5;
  color: #1a1a1a;
  transform: rotate(90deg);
}

.modal-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.modal-header p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.modal-body {
  padding: 32px 40px 40px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-form .form-group {
  display: flex;
  flex-direction: column;
}

.modal-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 14px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 12px 14px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: #ffffff;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}

.modal-form textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.modal-form .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal-form .checkbox-group label {
  font-weight: 400;
  font-size: 13px;
  color: #666;
  margin: 0;
}

.modal-form .checkbox-group a {
  color: #1a1a1a;
  text-decoration: underline;
}

.modal-submit {
  padding: 16px 32px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}

.modal-submit:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-note {
  font-size: 13px;
  color: #666;
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}

/* Header Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.header-badge {
  padding: 6px 12px;
  background: #f0f8f0;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #c8e6c9;
}

.header-cta {
  padding: 12px 28px;
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.header-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 15px;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  fill: #4caf50;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero .subheadline {
  font-size: 22px;
  color: #666;
  max-width: 750px;
  margin: 0 auto 40px;
}

.hero-image {
  max-width: 1000px;
  margin: 60px auto 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid #e5e5e5;
}

.image-caption {
  margin-top: 16px;
  font-size: 15px;
  color: #666;
  font-style: italic;
}

.cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid #1a1a1a;
  cursor: pointer;
}

.cta-button:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.cta-button.secondary {
  background: #ffffff;
  color: #1a1a1a;
}

.cta-button.secondary:hover {
  background: #f8f9fa;
}

.problem {
  background: #ffffff;
}

.problem h2 {
  margin-bottom: 24px;
  text-align: center;
}

.problem > .container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 19px;
}

.problem-diagram {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.problem-diagram img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.problem-item {
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.problem-item h3 {
  color: #d32f2f;
  margin-bottom: 12px;
}

.system {
  background: #1a1a1a;
  color: #ffffff;
}

.system h2 {
  color: #ffffff;
  text-align: center;
}

.system > .container > p {
  color: #d1d1d1;
  font-size: 19px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto 48px;
}

.system-visual {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.system-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.system-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature {
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.feature h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.feature p {
  color: #c1c1c1;
  font-size: 16px;
}

.how-it-works {
  background: #ffffff;
}

.how-it-works h2 {
  text-align: center;
}

.how-it-works > .container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 19px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.step {
  position: relative;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}

.step h3 {
  margin-bottom: 12px;
}

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

.video-section {
  background: #f8f9fa;
  text-align: center;
}

.video-wrapper {
  max-width: 900px;
  margin: 48px auto 0;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.video-wrapper iframe {
  width: 100%;
  height: 500px;
  border-radius: 8px;
}

.video-section .description {
  max-width: 750px;
  margin: 0 auto 32px;
  font-size: 19px;
}

.who-section {
  background: #ffffff;
}

.who-section h2 {
  text-align: center;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.who-box {
  padding: 40px;
  border-radius: 12px;
  border: 2px solid #e5e5e5;
}

.who-box.for {
  background: #f0f8f0;
  border-color: #4caf50;
}

.who-box.not-for {
  background: #fff5f5;
  border-color: #ef5350;
}

.who-box h3 {
  margin-bottom: 24px;
}

.who-box ul {
  list-style: none;
  padding: 0;
}

.who-box ul li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 17px;
  color: #333;
}

.who-box.for ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 700;
  font-size: 20px;
}

.who-box.not-for ul li:before {
  content: "×";
  position: absolute;
  left: 0;
  color: #ef5350;
  font-weight: 700;
  font-size: 24px;
}

/* About Me Section (Before CTA) */
.about-me-section {
  background: #f8f9fa;
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 4px solid #ffffff;
}

.about-text h2 {
  font-size: 38px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.cta-section {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 24px;
}

.cta-section p {
  color: #d1d1d1;
  font-size: 20px;
  max-width: 650px;
  margin: 0 auto 40px;
}

/* Footer Styles */
.site-footer {
  background: #0a0a0a;
  color: #999;
  padding: 60px 0 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #222;
}

.footer-about h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.7;
  color: #999;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #999;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.footer-cta {
  margin-top: 24px;
}

.footer-cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.footer-cta-button:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #222;
}

.footer-bottom p {
  font-size: 14px;
  color: #666;
}

/* Legal Pages */
.legal-page {
  padding: 80px 0;
  background: #ffffff;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.legal-content .last-updated {
  color: #666;
  font-size: 15px;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 20px;
}

.legal-content h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 20px;
}

.legal-content ul {
  margin: 20px 0 20px 40px;
}

.legal-content ul li {
  margin-bottom: 12px;
  color: #4a4a4a;
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero .subheadline {
    font-size: 18px;
  }
  
  .trust-badges {
    gap: 20px;
  }
  
  .hero-image {
    margin-top: 40px;
  }
  
  .problem-diagram {
    margin-bottom: 40px;
  }
  
  .system-visual {
    margin-bottom: 40px;
  }
  
  .who-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .video-wrapper iframe {
    height: 300px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .about-me-section {
    padding: 60px 0;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    max-width: 250px;
    margin: 0 auto;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text h2 {
    font-size: 32px;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .header-container {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .logo-badge-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .header-cta {
    width: 100%;
    text-align: center;
  }
  
  /* Modal Mobile */
  .modal-content {
    max-height: 95vh;
    margin: 10px;
  }
  
  .modal-header {
    padding: 30px 24px 20px;
  }
  
  .modal-header h2 {
    font-size: 24px;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }
}
