/* =========================================================
   StoneLink — Main Stylesheet
   ========================================================= */

/* ----- CSS Variables ----- */
:root {
  --color-accent:       #2563EB;   /* Blue accent */
  --color-accent-dark:  #1D4ED8;
  --color-accent-light: #EFF6FF;
  --color-bg:           #FFFFFF;
  --color-bg-subtle:    #F8FAFC;
  --color-border:       #E2E8F0;
  --color-text:         #1E293B;
  --color-text-muted:   #64748B;
  --color-success:      #16A34A;
  --color-error:        #DC2626;

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --radius:       0.5rem;
  --radius-lg:    0.75rem;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.10);

  --max-width:    1100px;
  --header-h:     64px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--color-text-muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}
.nav-link.nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 0.4rem 1.1rem;
}
.nav-link.nav-cta:hover {
  background: var(--color-accent-dark);
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.2s;
  border-radius: 2px;
}

/* ----- Flash Messages ----- */
.flash-container { padding: 1rem 1.5rem 0; }
.flash {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.flash-success {
  background: #F0FDF4;
  color: var(--color-success);
  border: 1px solid #BBF7D0;
}
.flash-error {
  background: #FEF2F2;
  color: var(--color-error);
  border: 1px solid #FECACA;
}

/* ----- Section Helpers ----- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-bg { background: var(--color-bg-subtle); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; }

/* ----- Divider ----- */
.divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* =========================================================
   HOME PAGE
   ========================================================= */

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(37,99,235,0.15);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}
.hero h1 { max-width: 700px; }
.hero h1 .accent { color: var(--color-accent); }
.hero-sub {
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Services Overview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.2);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.service-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 1.75rem; font-size: 1.05rem; }
.btn-white {
  background: #fff;
  color: var(--color-accent);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.about-hero h1 { margin-bottom: 1rem; }
.about-hero p { max-width: 580px; margin: 0 auto; font-size: 1.1rem; }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; font-size: 1rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.value-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.value-item p { font-size: 0.87rem; line-height: 1.55; }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.services-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.services-hero h1 { margin-bottom: 1rem; }
.services-hero p { max-width: 580px; margin: 0 auto; font-size: 1.1rem; }

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-row:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}
.service-row-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-row-body h3 { margin-bottom: 0.4rem; }
.service-row-body p { font-size: 0.95rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  position: relative;
}
.step-number {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.87rem; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.contact-hero h1 { margin-bottom: 1rem; }
.contact-hero p { max-width: 520px; margin: 0 auto; font-size: 1.1rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p { margin-bottom: 2rem; font-size: 0.97rem; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.contact-method-icon {
  width: 38px;
  height: 38px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-method-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.1rem;
}
.contact-method-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
}
.contact-method-value a {
  color: var(--color-accent);
}
.contact-method-value a:hover { text-decoration: underline; }

.response-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.9rem 1rem;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

/* Contact Form */
.contact-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 {
  margin-bottom: 1.75rem;
  font-size: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.93rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94A3B8; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; justify-content: center; padding: 0.85rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 0;
  margin-top: 5rem;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-logo { color: #fff; }
.footer-logo .logo-mark { background: var(--color-accent); }
.footer-tagline { margin-top: 0.4rem; font-size: 0.88rem; }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.6rem 0.85rem; }
  .nav-link.nav-cta { text-align: center; }

  /* About */
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Services */
  .service-row { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.75rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.5rem; }

  /* Hero actions */
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}
