/* shared/css/base.css — Storm Reply Brand Foundation */
/* Linked as first stylesheet by ALL sites. Never duplicate or override. */

/* ── @font-face: Proxima Nova ───────────────────────────────────── */
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-Light.woff2') format('woff2'), url('/shared/fonts/ProximaNova-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-LightItalic.woff2') format('woff2'), url('/shared/fonts/ProximaNova-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-Regular.woff2') format('woff2'), url('/shared/fonts/ProximaNova-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-RegularItalic.woff2') format('woff2'), url('/shared/fonts/ProximaNova-RegularItalic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-Semibold.woff2') format('woff2'), url('/shared/fonts/ProximaNova-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-SemiboldItalic.woff2') format('woff2'), url('/shared/fonts/ProximaNova-SemiboldItalic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-Bold.woff2') format('woff2'), url('/shared/fonts/ProximaNova-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-BoldIt.woff2') format('woff2'), url('/shared/fonts/ProximaNova-BoldIt.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-Extrabold.woff2') format('woff2'), url('/shared/fonts/ProximaNova-Extrabold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/shared/fonts/ProximaNova-Black.woff2') format('woff2'), url('/shared/fonts/ProximaNova-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'Proxima Nova Condensed'; src: url('/shared/fonts/ProximaNovaCond-Light.woff2') format('woff2'), url('/shared/fonts/ProximaNovaCond-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova Condensed'; src: url('/shared/fonts/ProximaNovaCond-LightIt.woff2') format('woff2'), url('/shared/fonts/ProximaNovaCond-LightIt.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Proxima Nova Condensed'; src: url('/shared/fonts/ProximaNovaCond-Regular.woff2') format('woff2'), url('/shared/fonts/ProximaNovaCond-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova Condensed'; src: url('/shared/fonts/ProximaNovaCond-RegularIt.woff2') format('woff2'), url('/shared/fonts/ProximaNovaCond-RegularIt.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Proxima Nova Condensed'; src: url('/shared/fonts/ProximaNovaCond-Semibold.woff2') format('woff2'), url('/shared/fonts/ProximaNovaCond-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova Condensed'; src: url('/shared/fonts/ProximaNovaCond-SemiboldIt.woff2') format('woff2'), url('/shared/fonts/ProximaNovaCond-SemiboldIt.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }

/* ── CSS Custom Properties ──────────────────────────────────────── */
:root {
  --storm-dark-teal:   #004149;
  --storm-teal:        #00A486;
  --storm-bright-teal: #0EA49A;
  --storm-light-teal:  #00C49B;
  --storm-white:       #FFFFFF;
  --storm-off-white:   #F2F2F2;
  --storm-light-gray:  #E7E6E6;
  --storm-dark-gray:   #333333;
  --storm-gradient:    linear-gradient(135deg, #004149, #00A486);
  --aws-orange:        #FF9900;

  --font-primary:    'Proxima Nova', Arial, Helvetica, sans-serif;
  --font-heading:    'Proxima Nova', 'Arial Black', Impact, sans-serif;
  --font-condensed:  'Proxima Nova Condensed', 'Arial Narrow', sans-serif;
}

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

/* ── Base Typography ────────────────────────────────────────────── */
body {
  font-family: var(--font-primary);
  color: var(--storm-dark-gray);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--storm-dark-teal);
}

h1 { font-size: 40px; font-weight: 900; line-height: 1.1; margin-bottom: 0.5em; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 0.4em; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 0.3em; }

p { margin-bottom: 1em; }

a { color: var(--storm-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--storm-dark-teal); }

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

/* ── Layout Helpers ─────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero Section ───────────────────────────────────────────────── */
.hero {
  background: var(--storm-white);
  color: var(--storm-dark-teal);
  padding: 80px 40px;
  text-align: center;
}
.hero h1 { color: var(--storm-dark-teal); font-size: 44px; font-weight: 900; }
.hero h1 span { background: linear-gradient(135deg, var(--storm-teal), var(--storm-light-teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p  { color: #5a6a72; font-size: 18px; opacity: 0.95; max-width: 700px; margin: 0 auto 1.5em; }
.hero .logo { max-height: 48px; margin-bottom: 32px; }

/* ── Section Variants ───────────────────────────────────────────── */
.section-white { background: var(--storm-white); padding: 60px 40px; }
.section-light { background: var(--storm-off-white); padding: 60px 40px; }
.section-dark  { background: var(--storm-dark-teal); color: var(--storm-white); padding: 60px 40px; }
.section-dark h2, .section-dark h3 { color: var(--storm-white); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--storm-teal);
  color: var(--storm-white);
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--storm-dark-teal); color: var(--storm-white); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--storm-teal);
  padding: 12px 26px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--storm-teal);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--storm-teal); color: var(--storm-white); }

.btn-white {
  display: inline-block;
  background: var(--storm-white);
  color: var(--storm-dark-teal);
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-white:hover { background: var(--storm-off-white); color: var(--storm-dark-teal); }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--storm-white);
  border: 1px solid var(--storm-light-gray);
  border-radius: 4px;
  padding: 32px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0, 65, 73, 0.1); }

/* ── Grid ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Partner Badge ──────────────────────────────────────────────── */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--storm-white);
  border: 1px solid var(--storm-light-gray);
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--storm-dark-teal);
}
.partner-badge .aws-icon { color: var(--aws-orange); font-weight: 700; }

/* ── Footer (used by shared/partials/footer-de.html & footer-en.html) ── */
footer[role="contentinfo"] { background: var(--storm-dark-teal); padding: 64px 0 0; border: none; color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.7; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand > img { height: 60px; width: auto; display: block; max-width: fit-content; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 300px; margin: 0; }
.footer-aws-badge { display: flex; align-items: center; gap: 0; margin-top: 4px; }
.footer-aws-badge img { height: 28px; width: auto; display: block; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: background .3s; }
.footer-social a:hover { background: rgba(255,255,255,.2); }
.footer-social a svg { width: 18px; height: 18px; color: #fff; }
.footer-col h4 { font-size: .82rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: .85rem; color: rgba(255,255,255,.65); padding: 5px 0; transition: color .3s; text-decoration: none; }
.footer-col a:hover { color: var(--storm-light-teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-logo { max-height: 36px; margin-bottom: 16px; }

/* ── Contact Form (used by shared/partials/contact-form-de/en.html) ── */
.contact-form-section { background: var(--storm-off-white); padding: 72px 40px; }
.contact-form-section h2 { color: var(--storm-dark-teal); margin-bottom: 8px; text-align: center; }
.contact-form-section > .container > p { color: #555; font-size: 1rem; max-width: 640px; margin: 0 auto 40px; text-align: center; }
.doi-form-wrapper { background: #fff; border: 1px solid var(--storm-light-gray); border-radius: 8px; padding: 40px 48px; max-width: 720px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,65,73,.07); position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label, .form-group .form-label { font-family: var(--font-primary); font-size: .88rem; font-weight: 600; color: var(--storm-dark-teal); margin-bottom: 6px; display: block; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea { font-family: var(--font-primary); font-size: .95rem; color: var(--storm-dark-gray); background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; line-height: 1.5; -webkit-appearance: none; appearance: none; }
.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="tel"]:hover,
.form-group textarea:hover { border-color: #bbb; }
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus { outline: none; border-color: var(--storm-teal); box-shadow: 0 0 0 3px rgba(0,164,134,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group input.is-invalid, .form-group textarea.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.field-error { display: block; font-size: .8rem; color: #c0392b; margin-top: 5px; font-weight: 500; }
.form-consent { margin-top: 8px; margin-bottom: 24px; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .85rem; color: #555; line-height: 1.6; font-weight: 400; }
.consent-label input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; accent-color: var(--storm-teal); cursor: pointer; margin-top: 2px; }
.consent-label span a { color: var(--storm-teal); text-decoration: underline; text-underline-offset: 2px; }
.consent-label span a:hover { color: var(--storm-dark-teal); }
.consent-label.is-invalid { color: #c0392b; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.form-actions { margin-top: 16px; text-align: center; }
.btn-submit { display: inline-flex; align-items: center; gap: 10px; background: var(--storm-gradient); color: #fff; border: none; border-radius: 4px; padding: 14px 32px; font-family: var(--font-primary); font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .15s; white-space: nowrap; }
.btn-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-submit:disabled, .btn-submit[aria-busy="true"] { opacity: .65; cursor: not-allowed; transform: none; }
.btn-submit [hidden] { display: none !important; }
.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.btn-loading::before { content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: doi-spin .7s linear infinite; flex-shrink: 0; }
@keyframes doi-spin { to { transform: rotate(360deg); } }
.form-message { margin-top: 20px; border-radius: 4px; padding: 14px 18px; font-size: .92rem; font-weight: 500; line-height: 1.5; }
.form-message[data-state="success"] { background: #1a7a4a; color: #fff; }
.form-message[data-state="error"] { background: #c0392b; color: #fff; }

/* ── AWS Trust Badge Bar ──────────────────────────────────────── */
.badge-trust-bar { background: var(--storm-off-white); padding: 48px 0; text-align: center; }
.badge-trust-bar .trust-label { font-size: .72rem; font-weight: 700; color: var(--storm-teal); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 6px; }
.badge-trust-bar .trust-subtitle { font-size: .82rem; color: #777; margin-bottom: 24px; }
.badge-trust-bar .trust-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.badge-trust-bar .trust-badges img { width: 120px; height: 120px; object-fit: contain; }

/* ── Entity Statement ───────────────────────────────────────────── */
.entity-statement {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--storm-dark-teal);
  letter-spacing: 0.02em;
}

/* ── Labels / Tags ──────────────────────────────────────────────── */
.label {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--storm-teal);
}

/* ── Newsletter Form (Footer) ───────────────────────────────────── */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  color: var(--storm-white);
  font-family: var(--font-primary);
  font-size: 14px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form button {
  padding: 10px 20px;
  background: var(--storm-teal);
  color: var(--storm-white);
  border: none;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ── AWS Badges Section ────────────────────────────────────────── */
.aws-badges-section { background: var(--storm-off-white, #F2F2F2); padding: 72px 40px; }
.badges-heading { color: var(--storm-dark-teal, #004149); text-align: center; margin-bottom: 8px; }
.badges-sub { color: #555; font-size: 1rem; text-align: center; max-width: 600px; margin: 0 auto 48px; }
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.badges-grid img { width: 150px; height: 150px; object-fit: contain; }
@media (max-width: 768px) {
  .aws-badges-section { padding: 48px 20px; }
  .badges-grid { gap: 20px; }
  .badges-grid img { width: 120px; height: 120px; }
}

/* ── FAQ Accordion ──────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--storm-light-gray); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--storm-dark-teal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ::after +/− icons removed — all sites use inline SVG chevrons instead */
.faq-question::after { display: none; }
/* Hidden by default via max-height (not display:none) so inline maxHeight JS also works */
.faq-answer { padding: 0 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open > .faq-answer,
.faq-item.active > .faq-answer,
.faq-answer.active { max-height: 500px; overflow: visible; }

/* ── Language Switcher ──────────────────────────────────────────── */
.lang-switch a {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  color: var(--storm-teal);
  border: 1px solid var(--storm-light-gray);
  border-radius: 4px;
  padding: 4px 10px;
  transition: all .2s;
}
.lang-switch a:hover {
  background: var(--storm-teal);
  color: var(--storm-white);
  border-color: var(--storm-teal);
}
.lang-switch-mobile {
  font-weight: 700 !important;
  letter-spacing: .5px;
}
.lang-switch-legal {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--storm-teal);
  border: 1px solid var(--storm-light-gray);
  border-radius: 4px;
  padding: 4px 10px;
  text-decoration: none;
  transition: all .2s;
}
.lang-switch-legal:hover {
  background: var(--storm-teal);
  color: var(--storm-white);
  border-color: var(--storm-teal);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .hero { padding: 48px 20px; }
  .section-white, .section-light, .section-dark { padding: 40px 20px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Footer responsive */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  /* Contact form responsive */
  .contact-form-section { padding: 48px 20px; }
  .doi-form-wrapper { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .btn-submit { width: 100%; justify-content: center; }

  /* Badge bar responsive */
  .badge-trust-bar { padding: 36px 0; }
  .badge-trust-bar .trust-badges { gap: 16px; }
  .badge-trust-bar .trust-badges img { width: 90px; height: 90px; }

  .newsletter-form { flex-direction: column; }
}

/* ── Skip Link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--storm-dark-teal);
  color: var(--storm-white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Focus-visible (WCAG 2.1 SC 2.4.7) ─────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--storm-teal, #00A486);
  outline-offset: 2px;
}

/* ── Reduced Motion (WCAG 2.1 SC 2.3.3) ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
