/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500&family=Inter:wght@300;400;500;600;700&display=swap');

/* Jedira: primary heading font (single weight, declared for all weights so browsers never fake bold) */
@font-face {
  font-family: 'Jedira';
  src: url('../fonts/jedira-regular.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jedira';
  src: url('../fonts/jedira-italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-secondary);
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Global Text Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

p {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  max-width: 650px;
}

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

.text-center {
  text-align: left; 
}

/* Fix Hero Layout & Alignment */
.hero {
  background-color: var(--color-bg);
  position: relative;
  z-index: 1;
}

/* Create golden glow inside hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.2) 0%, rgba(201, 168, 106, 0) 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

.hero-content {
  text-align: left;
  max-width: 1400px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-sm) !important;
  z-index: 2;
  position: relative;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-secondary);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Utility layout updates */
.container {
  padding: 0 var(--space-sm);
  max-width: 1400px;
}

.hidden {
  display: none !important;
}

/* Adjust stats section */
.stats-section {
  background-color: transparent !important;
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* Featured Images & Portfolio Previews */
.img-reveal {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.img-reveal img {
  transition: transform var(--transition-slow);
}

.img-reveal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background-color var(--transition-normal);
  pointer-events: none;
}

.img-reveal:hover::before {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Testimonial Quotation Marks */
.testimonial-preview {
  position: relative;
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-preview p {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

.testimonial-preview::before {
  content: '""';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 8rem;
  font-family: var(--font-primary);
  color: rgba(201, 168, 106, 0.1);
  line-height: 1;
  z-index: 0;
}

/* Custom Cursor */
body {
  cursor: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><circle cx="6" cy="6" r="5" fill="%23C9A86A" /></svg>') 6 6, auto;
}

a, button, .btn, .portfolio-item, .img-reveal {
  cursor: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="7" fill="none" stroke="%23C9A86A" stroke-width="2"/></svg>') 8 8, pointer !important;
}

/* Mobile Responsive Section Overrides */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2.1rem, 6.5vw, 3rem) !important;
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.75rem, 5vw, 2.2rem) !important;
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem) !important;
    line-height: 1.25;
  }

  section {
    padding: 76px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .hero-content {
    padding: 120px 22px 64px !important;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btns .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Statistics 2-column Grid */
  .stats-container, .stats-grid, [class*="stats"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .stat-number {
    font-size: 2.25rem !important;
  }

  .testimonial-preview {
    padding: 24px 18px;
  }

  .testimonial-preview p {
    font-size: 1.05rem;
  }
}

@media (max-width: 414px) {
  section {
    padding: 64px 0;
  }

  p {
    font-size: 0.975rem;
    line-height: 1.6;
  }

  .hero::after {
    width: 100vw;
    height: 100vw;
  }
}

@media (pointer: coarse) {
  body, a, button, .btn, .portfolio-item, .img-reveal {
    cursor: auto !important;
  }
}
