/* ============================================
   South Drop – Global Stylesheet
   Lima, Peru · Drupal Services & Software Dev
   ============================================ */

/* --- Variables -------------------------------- */
:root {
  --sd-navy:    #0d2b4e;
  --sd-blue:    #1565c0;
  --sd-accent:  #e65100;
  --sd-light:   #e3f2fd;
  --sd-white:   #ffffff;
  --sd-gray:    #f4f6f9;
  --sd-text:    #222831;
  --sd-muted:   #607d8b;
  --sd-radius:  6px;
  --sd-shadow:  0 4px 20px rgba(13,43,78,.12);
  --sd-font:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --sd-mono:    'Courier New', monospace;
}

/* --- Reset & Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sd-font);
  color: var(--sd-text);
  background: var(--sd-white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sd-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sd-accent); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--sd-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; }

/* --- Layout ----------------------------------- */
.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.region-content { padding: 3rem 0; }

/* --- Skip Link -------------------------------- */
.visually-hidden-focusable {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden-focusable:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  clip: auto;
  white-space: normal;
  overflow: visible;
  background: var(--sd-accent);
  color: var(--sd-white);
  padding: .5rem 1rem;
  border-radius: var(--sd-radius);
  z-index: 9999;
}

/* ============================================
   HEADER
   ============================================ */
.layout-header {
  background: var(--sd-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-bottom: 1px solid #e0e7ef;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */
.region-primary-menu nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0; margin: 0;
}
.region-primary-menu nav a {
  display: block;
  padding: .55rem 1rem;
  color: var(--sd-navy);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--sd-radius);
  transition: background .2s, color .2s;
}
.region-primary-menu nav a:hover,
.region-primary-menu nav a.is-active {
  background: var(--sd-light);
  color: var(--sd-blue);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: .5rem;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--sd-navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--sd-navy) 0%, #1a3a6e 60%, #1565c0 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(21,101,192,.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(230,81,0,.18) 0%, transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #90caf9;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--sd-white); margin-bottom: 1.25rem; }
.hero h1 span { color: #f9a825; }
.hero p {
  font-size: 1.15rem;
  color: #b0c8e8;
  max-width: 580px; margin: 0 auto 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--sd-radius);
  font-size: .95rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--sd-accent);
  color: var(--sd-white);
}
.btn-primary:hover {
  background: #bf360c;
  color: var(--sd-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,81,0,.4);
}
.btn-outline {
  border-color: rgba(255,255,255,.45);
  color: var(--sd-white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--sd-white);
  border-color: var(--sd-white);
}
.btn-blue {
  background: var(--sd-blue);
  color: var(--sd-white);
}
.btn-blue:hover {
  background: #0d47a1;
  color: var(--sd-white);
  transform: translateY(-2px);
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section { padding: 5rem 1.5rem; }
.section--gray { background: var(--sd-gray); }
.section--navy { background: var(--sd-navy); }
.section--navy * { color: var(--sd-white); }

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sd-accent);
  margin-bottom: .65rem;
}
.section__header h2 { margin-bottom: .75rem; }
.section__header p  { color: var(--sd-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section--navy .section__header p { color: #90caf9; }
.section--navy .section__header h2 { color: var(--sd-white); }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--sd-white);
  border: 1px solid #e0e8f4;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sd-blue), var(--sd-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sd-shadow); border-color: #b3cde8; }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-size: 2.25rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: flex-start;
}
.service-card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.service-card p  { color: var(--sd-muted); font-size: .92rem; margin-bottom: 1.25rem; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .7rem; font-weight: 600;
  background: var(--sd-light);
  color: var(--sd-blue);
  padding: .2rem .55rem;
  border-radius: 100px;
  letter-spacing: .02em;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(90deg, var(--sd-navy), #1565c0);
  padding: 3rem 1.5rem;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; text-align: center;
}
.stat-item__number {
  font-size: 2.75rem; font-weight: 900;
  color: #f9a825;
  line-height: 1;
}
.stat-item__label { color: #90caf9; font-size: .85rem; margin-top: .35rem; text-transform: uppercase; letter-spacing: .08em; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-visual {
  background: linear-gradient(135deg, var(--sd-navy), var(--sd-blue));
  border-radius: 14px;
  padding: 3rem;
  color: var(--sd-white);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.about-visual::after {
  content: 'SD';
  position: absolute; top: -20px; right: -20px;
  font-size: 10rem; font-weight: 900;
  color: rgba(255,255,255,.06);
  line-height: 1; pointer-events: none;
}
.about-visual h3 { font-size: 1.4rem; margin-bottom: .5rem; color: var(--sd-white); }
.about-visual p  { color: #90caf9; font-size: .92rem; }
.about-text .section__eyebrow { display: block; margin-bottom: .5rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { color: var(--sd-muted); margin-bottom: 1rem; }
.about-text ul { color: var(--sd-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.about-text ul li { margin-bottom: .4rem; }

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px; margin: 0 auto;
}
.team-card {
  background: var(--sd-white);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--sd-shadow);
  border: 1px solid #e0e8f4;
}
.team-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sd-blue), var(--sd-accent));
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: var(--sd-white);
  letter-spacing: -.02em;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.team-card__role { font-size: .82rem; color: var(--sd-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.team-card p { color: var(--sd-muted); font-size: .88rem; }
.team-card__badges { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: .75rem; }

/* ============================================
   SECTORS
   ============================================ */
.sectors-grid {
  display: flex; flex-wrap: wrap; gap: .75rem;
  max-width: 900px; margin: 0 auto;
  justify-content: center;
}
.sector-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--sd-white);
  padding: .5rem 1.2rem;
  border-radius: 100px;
  font-size: .88rem; font-weight: 600;
  transition: background .2s;
}
.sector-pill:hover { background: rgba(255,255,255,.2); }

/* ============================================
   CONTACT
   ============================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  max-width: 1000px; margin: 0 auto;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--sd-muted); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.25rem; }
.contact-detail__icon {
  width: 40px; height: 40px; border-radius: var(--sd-radius);
  background: var(--sd-light); color: var(--sd-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.contact-detail__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sd-muted); }
.contact-detail__value { font-weight: 600; color: var(--sd-navy); }

.contact-form { background: var(--sd-white); border-radius: 12px; padding: 2.25rem; box-shadow: var(--sd-shadow); border: 1px solid #e0e8f4; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--sd-navy); margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #d0dce8;
  border-radius: var(--sd-radius);
  font-family: var(--sd-font);
  font-size: .95rem;
  color: var(--sd-text);
  background: var(--sd-white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sd-blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================
   FOOTER
   ============================================ */
.layout-footer { background: #070f1d; color: #8faac4; }
.footer-top {
  padding: 4rem 1.5rem 3rem;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: .85rem; max-width: 280px; }
.footer-col h4 { color: var(--sd-white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { color: #8faac4; font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--sd-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: #8faac4; }
.footer-bottom a:hover { color: var(--sd-white); }

/* ============================================
   DRUPAL NODES / PAGES
   ============================================ */
.node--type-page .node__content,
.node--type-service .node__content,
.node--type-team-member .node__content {
  max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem;
}

.page-title-block { padding: 3rem 1.5rem 0; max-width: 780px; margin: 0 auto; }

/* Breadcrumbs */
.block-system-breadcrumb-block { padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.breadcrumb { display: flex; gap: .5rem; list-style: none; padding: 0; font-size: .85rem; color: var(--sd-muted); }
.breadcrumb li + li::before { content: '/'; color: #ccc; }

/* ============================================
   MESSAGES
   ============================================ */
.messages {
  padding: 1rem 1.5rem; border-radius: var(--sd-radius);
  margin: 1rem 0; font-size: .92rem;
}
.messages--status  { background: #e8f5e9; border-left: 4px solid #43a047; color: #1b5e20; }
.messages--warning { background: #fff8e1; border-left: 4px solid #f9a825; color: #5d4037; }
.messages--error   { background: #ffebee; border-left: 4px solid #e53935; color: #b71c1c; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .footer-top  { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .region-primary-menu { display: none; }
  .region-primary-menu.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--sd-white); border-top: 1px solid #e0e7ef; box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: 1rem 1.5rem; }
  .region-primary-menu.is-open nav ul { flex-direction: column; }
  .nav-toggle { display: flex; }
  .layout-header { position: relative; }
  .header-inner { position: relative; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
