/* =========================================================
   Silver Crypt | style.css -- Warm Friendly UI, Flexbox Only
   ========================================================= */
/* --- CSS Reset & Normalize --- */
html, body, div, span, applet, object, iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var, b,u,i, center,
dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,embed,
figure,figcaption,footer,header,hgroup,
menu,nav,output,ruby,section,summary,
time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; border: none; background: none; outline: none; }

/* --- Brand Typography --- */
:root {
  --brand-primary: #1D2936;
  --brand-secondary: #16A8D8;
  --brand-accent: #E8EEF3;
  --warm1: #fff8f3;
  --warm2: #FFE2C6;
  --warm3: #FFD3AC;
  --warm4: #FFDABB;
  --highlight: #FF993A; /* soft orange highlight */
  --shadow-color: rgba(30,22,13,0.09);
  --border-radius: 18px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 10px;
  --text-main: #2D1300;
  --text-light: #796c60;
  --white: #fff;
  --btn-gradient: #FFA95A;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--warm1);
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.35rem; line-height: 1.3; }
h4 { font-size: 1.1rem; }
strong, b { color: var(--brand-primary); font-weight: 700; }
p { font-size: 1rem; margin-bottom: 14px; }
ul, ol {
  padding-left: 18px;
  margin-bottom: 16px;
}
li { margin-bottom: 8px; }
address {
  font-style: normal;
  color: var(--text-light);
  font-size: 0.98rem;
  margin-top: 8px;
}

/* --- Container Structure --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
}

/* --- Flexbox Layout Patterns --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--border-radius);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px var(--shadow-color);
  padding: 32px;
  min-width: 260px;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(255,153,58,0.11);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  background: var(--warm3);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 22px var(--shadow-color);
  margin-bottom: 20px;
  max-width: 520px;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(22,168,216,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Feature Grid (used in .feature-grid) --- */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-grid > div {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 18px var(--shadow-color);
  padding: 26px 24px 22px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border-radius: var(--radius-sm);
  background: var(--warm2);
  padding: 9px;
  object-fit: contain;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(255,153,58,0.08), 0 1.5px 6px var(--shadow-color);
  transform: translateY(-3px) scale(1.018);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(141deg, var(--warm2) 60%, var(--brand-accent) 100%);
  padding: 56px 0 64px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 64px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 540px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.22rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* --- Navigation --- */
header {
  background: var(--white);
  box-shadow: 0 2px 18px var(--shadow-color);
  padding: 0;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 95;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 13px 12px;
  min-height: 72px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: background 0.21s, color 0.17s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--highlight);
  color: var(--white);
}
.main-nav .btn-primary {
  margin-left: 12px;
}

/* --- Primary Button --- */
.btn-primary {
  background: var(--highlight);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  padding: 12px 32px 12px 32px;
  box-shadow: 0 4px 16px rgba(255,153,58,.09);
  display: inline-block;
  transition: background 0.21s, box-shadow 0.19s, transform 0.13s;
  border: none;
  cursor: pointer;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-secondary);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(22,168,216,.09);
  transform: translateY(-2px) scale(1.03);
}

/* --- Footer --- */
footer {
  background: var(--brand-primary);
  color: var(--white);
  padding: 44px 0 28px 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
.footer-wrapper a img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.footer-nav a {
  color: var(--white);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.9;
  transition: color 0.15s;
  border-radius: 8px;
  padding: 4px 12px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--highlight);
  background: rgba(255,153,58,0.15);
}
footer address {
  color: var(--white);
  font-size: 0.97rem;
  margin-top: 14px;
  line-height: 1.6;
  opacity: 0.85;
}
footer img {
  vertical-align: middle;
  height: 18px;
  margin-right: 7px;
}

/* --- Cards, Utilities, Text --- */
.text-section {
  margin-top: 8px;
  margin-bottom: 18px;
}
.text-section strong {
  display: block;
  margin-bottom: 7px;
}

/* --- Forms/Inputs (for Contact, Cookie Banner) --- */
input, textarea, select {
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: var(--border-radius);
  border: 1px solid var(--brand-accent);
  margin-bottom: 12px;
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  outline: 2px solid var(--brand-secondary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
  .container { max-width: 960px; }
  .main-nav { gap: 22px; }
}
@media (max-width: 900px) {
  .footer-wrapper { flex-direction: column; gap: 28px; align-items: flex-start; }
  .feature-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .section { padding: 28px 7px; margin-bottom: 44px; }
  .container { padding: 0 10px; }
  h1 { font-size: 1.77rem; }
  h2 { font-size: 1.23rem; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .feature-grid { flex-direction: column; gap: 20px; }
  .footer-wrapper { flex-direction: column; gap: 22px; }
  .hero {
    min-height: unset;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 35px 0 36px 0;
    margin-bottom: 38px;
  }
  .testimonial-card, .card {
    padding: 18px 14px;
    min-width: unset;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width:480px) {
  .footer-nav { flex-direction: column; gap: 9px; margin-bottom: 10px; }
  .container { padding: 0 3vw; }
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  background: var(--highlight);
  color: var(--white);
  border: none;
  font-size: 2.2rem;
  border-radius: var(--radius-md);
  width: 50px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 112;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-secondary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,216,170,0.96);
  z-index: 1205;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.55,.01,.19,1.02);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--brand-primary);
  font-size: 2.6rem;
  border: none;
  margin: 18px 0 0 18px;
  align-self: flex-start;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  z-index: 1206;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--highlight);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 54px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.19rem;
  color: var(--brand-primary);
  padding: 11px 8px;
  border-radius: 14px;
  transition: background 0.13s, color 0.15s;
  min-width: 70vw;
  max-width: 95vw;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--highlight);
  color: var(--white);
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--warm3);
  color: var(--brand-primary);
  padding: 28px 12vw 28px 12vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2030;
  box-shadow: 0 -4px 20px var(--shadow-color);
  transition: transform 0.33s cubic-bezier(.42,.01,.19,1.01);
  transform: translateY(120%);
}
.cookie-banner.active {
  transform: translateY(0);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 9px 24px;
  margin-bottom: 0;
  cursor: pointer;
  background: var(--highlight);
  color: var(--white);
  border: none;
  transition: background 0.19s, color .15s;
}
.cookie-banner button.cookie-settings {
  background: var(--brand-secondary);
}
.cookie-banner button.reject-btn {
  background: #f8c27b;
  color: var(--brand-primary);
}
.cookie-banner button:hover,.cookie-banner button:focus {
  background: var(--brand-primary);
  color: var(--white);
}
@media (max-width: 992px) {
  .cookie-banner { padding: 22px 2vw 22px 2vw; }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-backdrop {
  position: fixed;
  top:0;left:0;right:0;bottom:0;
  background: rgba(30,22,13,0.33);
  z-index: 2051;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active { display: flex; }
.cookie-modal {
  background: var(--warm4);
  color: var(--brand-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 38px rgba(22,168,216,0.12);
  padding: 42px 40px 36px 40px;
  max-width: 390px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInMod 0.35s ease;
}
@keyframes fadeInMod {
  from { transform:scale(.95) translateY(80px); opacity:0; }
  to { opacity:1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 18px;
}
.cookie-modal label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  user-select: none;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--brand-secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal .category-disabled {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 13px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  background: var(--highlight);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--brand-primary);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 23px;
  background: none;
  font-size: 1.6rem;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  opacity: 0.8;
  border-radius: var(--radius-sm);
  transition: background 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: rgba(255,153,58,0.13);
  color: var(--highlight);
}

/* --- General Interactive Elements --- */
a, button {
  transition: color 0.18s, background 0.17s, box-shadow 0.10s, border 0.15s;
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
  z-index: 2;
}

/* --- Table Styles (for resources/policies if needed) --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--shadow-color);
  margin-bottom: 28px;
}
th, td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--brand-accent);
}
th {
  background: var(--warm2);
  color: var(--brand-primary);
  font-weight: 600;
}

/* --- Accessibility Improvements --- */
:focus:not(:focus-visible) { outline: none; }

/* --- Visual Hierarchy & Utilities --- */
.mb-0 { margin-bottom: 0!important; }
.mb-1 { margin-bottom: 8px!important; }
.mb-2 { margin-bottom: 16px!important; }
.mt-2 { margin-top: 16px!important; }
.text-center { text-align: center; }
.rounded-lg { border-radius: var(--radius-lg); }

/* --- Animations & Transitions --- */
.section, .card, .testimonial-card, .hero, .feature-grid > div {
  animation: fade-in-up 0.6s cubic-bezier(.58,.15,.19,1.1);
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(55px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* --- Miscellaneous --- */
::-webkit-scrollbar {
  width: 9px;
  background: var(--brand-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 5px;
}

/* --- Forms (Contact) --- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
label { margin-bottom: 7px; display: inline-block; color: var(--brand-primary); }

/* --- Quote/Testimonial Styling --- */
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 1.09rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--brand-secondary);
  font-size: 0.99rem;
  font-style: italic;
}

/* --- CTA Section --- */
.section .btn-primary {
  margin-top: 16px;
}

/* --- Case Study/Highlight --- */
.feature-grid h4 {
  font-size: 1.08rem;
  color: var(--brand-secondary);
  margin-bottom: 5px;
}

/* --- List Bullets (Override ul/ol) --- */
ul {
  list-style: disc inside;
  margin-bottom: 18px;
}
ol {
  list-style: decimal inside;
}

/* --- Icon Customization (img in content) --- */
img[alt*='Icon'], img[alt*='icon-'] {
  vertical-align: middle;
  margin-right: 7px;
}

/* --- Thank you page icon / message --- */
.text-section ul li {
  margin-bottom: 8px;
}

/* --- End --- */
