/* Self-hosted fonts (SIL Open Font License): Inter for text, Plus Jakarta Sans for headings */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #1f5fbf;
  --primary-dark: #17488f;
  --text: #1d2433;
  --muted: #5b6475;
  --bg-alt: #f3f6fb;
  --border: #dde3ee;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; }

.container { width: 90%; max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-small { padding: .45rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--text); text-decoration: none; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a.active:not(.btn), .nav a:not(.btn):hover { color: var(--primary); }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #17488f, #1f5fbf 60%, #2b7de0);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 2rem; opacity: .95; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.page-header { background: var(--bg-alt); padding: 3rem 0; text-align: center; }
.page-header h1 { margin: 0 0 .5rem; }
.page-header p { margin: 0; color: var(--muted); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin: 0 0 2.5rem; font-size: 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #fff;
}
.card-icon { font-size: 2rem; }
.card h3 { margin: .5rem 0; }
.card p { color: var(--muted); margin: 0; }

.cta { text-align: center; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; }

.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service { border-left: 4px solid var(--primary); padding-left: 1.25rem; }
.service h2 { margin-top: 0; font-size: 1.4rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem;
  padding: .7rem; font: inherit;
  border: 1px solid var(--border); border-radius: 6px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.form-status.ok { background: #e5f6ea; color: #17602f; }
.form-status.err { background: #fde8e8; color: #8a1c1c; }
.contact-info { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius); align-self: start; }
.contact-info h2 { margin-top: 0; }

/* Footer */
.site-footer { background: #111827; color: #9ca3af; padding: 2rem 0; text-align: center; font-size: .9rem; }

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem; width: 100%; text-align: center; }
  .nav a.btn { border-radius: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0; }
}

/* Photos */
.hero {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, .92), rgba(23, 72, 143, .82) 55%, rgba(31, 95, 191, .7)),
    url("../img/photos/datacenter-aisle.jpg") center / cover no-repeat;
}
.service-img {
  display: block; width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1rem;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.gallery img {
  display: block; width: 100%; height: 240px; object-fit: cover;
  border-radius: var(--radius); transition: transform .3s;
}
.gallery img:hover { transform: scale(1.02); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about-img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* Cloud feature section */
.section-dark { background: #0B1F3A; color: #fff; }
.section-dark p { color: #C3CCDA; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature h2 { font-size: 2rem; margin-top: 0; }
.feature-img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: #F0444F; font-weight: 800; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* Diagrams */
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: -1.5rem auto 2.5rem; }
.diagram { margin: 0 0 2.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.diagram img { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.diagram figcaption strong { color: var(--text); }

/* Contact security question */
.captcha { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin-bottom: 1.25rem; }
.captcha label { margin-bottom: .5rem; }
.captcha #captcha-q { color: var(--primary); }
.captcha-row { display: flex; gap: .75rem; align-items: center; }
.captcha-row input { max-width: 140px; margin-top: 0 !important; }
.captcha-new { background: none; border: 0; color: var(--primary); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; padding: 0; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Required fields & validation */
.form-note { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.req { color: #D7263D; font-weight: 700; }
.req-alt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.contact-form .invalid { border-color: #D7263D !important; background: #FFF6F7; }

/* Typography */
h1, h2, h3, h4, .section-title, .btn { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.005em; word-spacing: .04em; line-height: 1.2; }
.hero h1 { font-weight: 800; letter-spacing: -0.01em; word-spacing: .05em; }
.nav a { font-weight: 500; letter-spacing: .01em; }
.btn { font-weight: 600; letter-spacing: .01em; }

/* Service area */
.area-list { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.area-list li { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1.1rem; font-weight: 600; font-size: .95rem; }
.footer-area { margin: 0 0 .4rem; color: #cbd5e1; }
