/* =============================================
   ELTAMA POOL — MAIN STYLESHEET
   ============================================= */

:root {
  --blue:       #0C3547;
  --blue-mid:   #1A5F7A;
  --blue-light: #57A8C9;
  --blue-pale:  #D6EEF8;
  --sand:       #F5F0E8;
  --sand-dark:  #E8DFD0;
  --text:       #1C2B35;
  --text-muted: #6B7F88;
  --white:      #FFFFFF;
  --gold:       #C8A96E;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ---- NAV ---- */
.ep-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(12, 53, 71, 0.97);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.ep-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.ep-nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  gap: 1rem;
}
.ep-nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--white);
  text-decoration: none; letter-spacing: 0.3px; flex-shrink: 0;
}
.ep-nav__logo span { color: var(--gold); }
.ep-nav__links {
  display: flex; gap: 1.75rem; list-style: none;
}
.ep-nav__links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.2px;
  transition: color 0.2s;
}
.ep-nav__links a:hover { color: var(--gold); }
.ep-nav__cta {
  background: var(--gold); color: var(--blue);
  padding: 0.5rem 1.25rem; border-radius: 4px;
  font-weight: 500; font-size: 0.85rem; text-decoration: none;
  transition: opacity 0.2s; flex-shrink: 0;
}
.ep-nav__cta:hover { opacity: 0.85; }
.ep-nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.ep-nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: 0.3s;
}

/* ---- HERO ---- */
.ep-hero {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-mid) 55%, #2A8AAD 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 2rem 6rem;
  position: relative; overflow: hidden;
}
.ep-hero::before {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  border: 70px solid rgba(87,168,201,0.12);
  pointer-events: none;
}
.ep-hero::after {
  content: ''; position: absolute; top: 15%; left: 52%;
  width: 320px; height: 320px; border-radius: 50%;
  border: 50px solid rgba(200,169,110,0.1);
  pointer-events: none;
}
.ep-hero__content { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.ep-hero__label {
  font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; font-weight: 500;
}
.ep-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--white); line-height: 1.12;
  margin-bottom: 1.25rem; max-width: 680px;
}
.ep-hero__title em { font-style: italic; color: var(--blue-light); }
.ep-hero__desc {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  max-width: 480px; line-height: 1.75; margin-bottom: 2.25rem;
}
.ep-hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.ep-hero__stats {
  max-width: 1200px; margin: 3rem auto 0;
  display: flex; gap: 3rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.ep-stat__num {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--white); font-weight: 700;
}
.ep-stat__label {
  display: block; font-size: 0.78rem;
  color: rgba(255,255,255,0.5); letter-spacing: 0.3px; margin-top: 2px;
}
.ep-hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.ep-hero__wave svg { width: 100%; height: 60px; }

/* ---- BUTTONS ---- */
.ep-btn {
  display: inline-block; padding: 0.8rem 1.9rem;
  border-radius: 4px; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; transition: transform 0.15s, opacity 0.2s;
}
.ep-btn:hover { transform: translateY(-2px); }
.ep-btn--gold { background: var(--gold); color: var(--blue); }
.ep-btn--gold:hover { opacity: 0.88; }
.ep-btn--outline {
  border: 1.5px solid rgba(255,255,255,0.45); color: var(--white);
}
.ep-btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }
.ep-btn--wa { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---- SECTIONS ---- */
.ep-section { padding: 5rem 2rem; }
.ep-section--sand { background: var(--sand); }
.ep-section--white { background: var(--white); }
.ep-section--dark { background: var(--blue); }
.ep-container { max-width: 1200px; margin: 0 auto; }
.ep-section__header { margin-bottom: 3rem; }
.ep-label {
  font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue-light); font-weight: 500; margin-bottom: 0.6rem;
}
.ep-label--gold { color: var(--gold); }
.ep-section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text); line-height: 1.2; margin-bottom: 0.85rem;
}
.ep-section__title--white { color: var(--white); }
.ep-section__sub { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 520px; }
.ep-section__sub--muted { color: rgba(255,255,255,0.55); }

/* ---- SERVICES ---- */
.ep-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ep-service-card {
  background: var(--white); border-radius: 10px;
  padding: 1.75rem; border: 1px solid var(--sand-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ep-service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(12,53,71,0.1); }
.ep-service-card__icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--blue-pale); margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.ep-service-card__icon svg { width: 22px; height: 22px; stroke: var(--blue-mid); }
.ep-service-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.ep-service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ---- PROCESS ---- */
.ep-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.ep-step {
  padding: 1.75rem 1.5rem;
  border-left: 2px solid var(--sand-dark);
}
.ep-step:first-child { border-left: none; }
.ep-step__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--blue-pale); line-height: 1; margin-bottom: 0.65rem;
}
.ep-step h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.4rem; }
.ep-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- PORTFOLIO ---- */
.ep-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1rem;
}
.ep-portfolio__item {
  aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
  position: relative; cursor: pointer;
}
.ep-portfolio__item--large { grid-column: span 2; }
.ep-portfolio__item--large { background: linear-gradient(135deg, #1A5F7A, #2A8AAD, #0C3547); }
.ep-portfolio__item--b { background: linear-gradient(135deg, #0C3547, #1A5F7A); }
.ep-portfolio__item--c { background: linear-gradient(135deg, #2A8AAD, #57A8C9); }
.ep-portfolio__item--d { background: linear-gradient(135deg, #0C3547, #2A8AAD); }
.ep-portfolio__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(12,53,71,0.85) 0%, rgba(12,53,71,0.05) 60%);
}
.ep-portfolio__text strong { display: block; font-size: 0.92rem; color: var(--white); font-weight: 500; }
.ep-portfolio__text span { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 3px; }
.ep-portfolio__note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ---- WHY ---- */
.ep-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.ep-why__card {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 1.75rem; background: rgba(255,255,255,0.05);
}
.ep-why__num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--gold); font-weight: 700; margin-bottom: 0.65rem;
}
.ep-why__card h3 { font-size: 0.95rem; font-weight: 500; color: var(--white); margin-bottom: 0.45rem; }
.ep-why__card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ---- CONTACT ---- */
.ep-contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.ep-contact__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--text);
  margin: 0.75rem 0 1rem; line-height: 1.25;
}
.ep-contact__info > p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.75rem; }
.ep-contact__details { display: flex; flex-direction: column; gap: 1rem; }
.ep-contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.ep-contact__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--blue-pale); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.ep-contact__icon svg { width: 16px; height: 16px; stroke: var(--blue-mid); }
.ep-contact__item div { display: flex; flex-direction: column; }
.ep-contact__item strong { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; margin-bottom: 2px; }
.ep-contact__item span { font-size: 0.92rem; color: var(--text); }

/* ---- FORM ---- */
.ep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ep-form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.ep-form-group label { font-size: 0.8rem; color: var(--text-muted); }
.ep-form-group input,
.ep-form-group select,
.ep-form-group textarea {
  border: 1px solid var(--sand-dark); border-radius: 6px;
  padding: 0.7rem 0.9rem; font-size: 0.9rem;
  font-family: inherit; color: var(--text);
  background: var(--sand); outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.ep-form-group input:focus,
.ep-form-group select:focus,
.ep-form-group textarea:focus {
  border-color: var(--blue-light); background: var(--white);
}
.ep-form-group textarea { min-height: 110px; resize: vertical; }
.ep-form-submit {
  width: 100%; background: var(--blue); color: var(--white);
  border: none; padding: 0.9rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
}
.ep-form-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.ep-form-success {
  background: #EAF7EE; border: 1px solid #A8DEB8; border-radius: 10px;
  padding: 2.5rem; text-align: center;
}
.ep-form-success svg { width: 40px; height: 40px; stroke: #2E7D4F; margin: 0 auto 1rem; }
.ep-form-success h3 { font-size: 1.2rem; color: #1C3D28; margin-bottom: 0.5rem; }
.ep-form-success p { color: #3A6B4D; font-size: 0.9rem; }

/* ---- FOOTER ---- */
.ep-footer { background: var(--blue); padding: 2rem; }
.ep-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.ep-footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--white);
}
.ep-footer__logo span { color: var(--gold); }
.ep-footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.ep-footer__links { display: flex; gap: 1.5rem; }
.ep-footer__links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.ep-footer__links a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .ep-portfolio { grid-template-columns: 1fr 1fr; }
  .ep-portfolio__item--large { grid-column: span 2; }
  .ep-contact { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 680px) {
  .ep-nav__links { display: none; }
  .ep-nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--blue); padding: 1.5rem 2rem;
    gap: 1.25rem; z-index: 998;
  }
  .ep-nav__cta { display: none; }
  .ep-nav__burger { display: flex; }
  .ep-hero { padding: 7rem 1.5rem 5rem; }
  .ep-hero__stats { gap: 2rem; }
  .ep-section { padding: 3.5rem 1.25rem; }
  .ep-portfolio { grid-template-columns: 1fr; }
  .ep-portfolio__item--large { grid-column: span 1; }
  .ep-process { grid-template-columns: 1fr; }
  .ep-step { border-left: none; border-top: 2px solid var(--sand-dark); }
  .ep-step:first-child { border-top: none; }
  .ep-form-row { grid-template-columns: 1fr; }
  .ep-footer__inner { flex-direction: column; align-items: flex-start; }
}
