/* ============================================
   Artal Dominicana — Brand Stylesheet
   Steel Blue + Gold palette
   ============================================ */

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

/* ── Variables ──────────────────────────── */
:root {
  --blue:       #2E6DA4;
  --blue-dark:  #1B4F7A;
  --blue-light: #EBF4FB;
  --gold:       #D4A017;
  --gold-light: #F5C518;
  --gold-dark:  #B8890F;
  --white:      #FFFFFF;
  --off-white:  #F8F9FB;
  --dark:       #1A2533;
  --dark-mid:   #2D3E50;
  --gray:       #6B7C93;
  --gray-light: #C5D0DE;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: .3s ease;
}

/* ── Reset & Base ───────────────────────── */
*, *::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(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto 3rem;
}

/* ── Layout ─────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--blue {
  background: var(--blue);
  color: var(--white);
}
.section--blue .section-title { color: var(--white); }
.section--blue .section-subtitle { color: rgba(255,255,255,.8); }

/* ── Header ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197,208,222,.5);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.header-logo img { height: 44px; width: auto; }
.header-logo-text { line-height: 1.2; }
.header-logo-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--blue);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark-mid);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(46,109,164,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(212,160,23,.15) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.3);
  color: var(--gold-light);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,23,.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.hero-logo-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.hero-logo-card img { margin: 0 auto 1.5rem; height: 80px; }
.hero-logo-card h2 {
  color: var(--gold-light);
  font-size: 1.75rem;
  margin-bottom: .5rem;
}
.hero-logo-card p { color: rgba(255,255,255,.6); font-size: .875rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}
.stat-card .label { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: .25rem; }

/* ── Services ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: .75rem;
}
.service-card p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── Portfolio ──────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark);
  cursor: pointer;
  transition: transform var(--transition);
}
.portfolio-card:hover { transform: scale(1.02); }
.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,37,51,.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--transition);
}
.portfolio-card:hover .portfolio-overlay { background: linear-gradient(to top, rgba(46,109,164,.85) 0%, rgba(46,109,164,.2) 100%); }
.portfolio-overlay .tag {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .5rem;
}
.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.portfolio-overlay p {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  line-height: 1.5;
}
.portfolio-featured {
  grid-column: span 2;
}
.portfolio-featured img { height: 400px; }
.portfolio-featured h3 { font-size: 1.75rem; }

/* ── About ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100%; height: 100%;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--gray); margin-bottom: 1.5rem; line-height: 1.8; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
}
.about-feature .icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature .icon svg { width: 18px; height: 18px; }

/* ── CTA Banner ────────────────────────── */
.cta-section {
  background: var(--dark);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(46,109,164,.2) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p { color: rgba(255,255,255,.6); font-size: 1.125rem; margin-bottom: 2.5rem; }

/* ── Contact ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 1rem; color: var(--dark); margin-bottom: .25rem; }
.contact-item p  { font-size: .9rem; color: var(--gray); }
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark-mid);
  margin-bottom: .5rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .875rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,109,164,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Footer ────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo img { height: 40px; }
.footer-brand .footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-col ul a { font-size: .875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-bottom a { color: var(--gold-light); }

/* ── Scroll Animations ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }
  .hero h1 { font-size: 2.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-featured { grid-column: span 1; }
  .portfolio-featured img { height: 280px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-card .num { font-size: 1.5rem; }
}

/* ── Section Divider ────────────────────── */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  margin: 0 auto 2rem;
}