/* =============================
   Reset & Base (mobile-first)
   ============================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { margin: 0; font-family: Verdana, Arial, sans-serif; color: #2B2D42; background: #F5F5F2; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2B2D42; text-decoration: none; }
a:focus { outline: 3px solid #8B4513; outline-offset: 2px; }
button { font-family: inherit; font-size: 16px; background: none; border: none; cursor: pointer; color: inherit; }
button:focus, [tabindex]:focus { outline: 3px solid #8B4513; outline-offset: 2px; }
ul, ol { padding-left: 20px; }
strong, b { font-weight: 700; }

/* =============================
   Design Tokens
   ============================= */
:root {
  --color-primary: #2B2D42; /* deep blue-gray */
  --color-secondary: #8B4513; /* saddle brown */
  --color-accent: #F5F5F2; /* light sand */
  --color-white: #FFFFFF;
  --color-ink: #11131F; /* deeper ink for max contrast */
  --shadow-1: 0 6px 18px rgba(17,19,31,0.08);
  --shadow-2: 0 10px 24px rgba(17,19,31,0.12);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --transition-fast: 180ms ease;
  --transition-mid: 260ms ease;
  --z-header: 1000;
  --z-menu: 1100;
  --z-cookie: 1200;
}

/* =============================
   Typography (Modern Bold)
   ============================= */
h1, h2, h3 { font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; font-weight: 800; line-height: 1.2; letter-spacing: 0.2px; margin: 0; }
h1 { font-size: 40px; }
h2 { font-size: 28px; margin-top: 0; }
h3 { font-size: 20px; }
p { margin: 0; font-size: 16px; }
small { font-size: 14px; }

/* Emphatic underline for text links (geometric, bold) */
.text-link { position: relative; font-weight: 700; padding-bottom: 2px; }
.text-link::after { content: ""; display: block; height: 3px; width: 100%; background: var(--color-secondary); transform: scaleX(1); transform-origin: left; transition: transform var(--transition-mid); }
.text-link:hover::after { transform: scaleX(0); }

/* =============================
   Layout Utilities (Flex-only)
   ============================= */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* General section styling to match modern_bold spacing */
section { margin-bottom: 60px; padding: 40px 0; }

/* =============================
   Header & Navigation
   ============================= */
header { background: var(--color-white); border-bottom: 3px solid var(--color-primary); position: sticky; top: 0; z-index: var(--z-header); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { height: 36px; width: auto; }

/* Desktop main navigation hidden by default (mobile-first) */
.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { font-weight: 800; padding: 10px 14px; border-radius: 8px; transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.main-nav a:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-1px); }

/* Mobile hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--color-primary); color: var(--color-white); font-size: 20px; box-shadow: var(--shadow-1); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.mobile-menu-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--color-primary); color: var(--color-white); transform: translateX(100%); transition: transform 300ms ease; z-index: var(--z-menu); display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 10px; background: var(--color-white); color: var(--color-primary); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { color: var(--color-white); font-size: 20px; font-weight: 800; padding: 14px 12px; border-radius: 10px; background: rgba(255,255,255,0.06); transition: background var(--transition-fast), transform var(--transition-fast); }
.mobile-nav a:hover { background: rgba(255,255,255,0.14); transform: translateX(4px); }

/* =============================
   Hero (bold, geometric)
   ============================= */
.hero { background: var(--color-primary); color: var(--color-white); position: relative; overflow: hidden; border-bottom: 8px solid var(--color-secondary); }
.hero .content-wrapper { padding: 48px 0; gap: 18px; }
.hero h1 { font-size: 40px; }
.hero p { color: #EAEAF0; font-size: 18px; max-width: 720px; }
.hero ul { margin: 0; padding-left: 20px; color: #F0F1F7; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
/* geometric accents */
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { width: 180px; height: 180px; background: rgba(255,255,255,0.08); right: -40px; top: -40px; transform: rotate(25deg); border-radius: 18px; }
.hero::after { width: 120px; height: 120px; background: rgba(255,255,255,0.08); left: -30px; bottom: -30px; transform: rotate(12deg); border-radius: 18px; }

/* =============================
   Buttons (bold, high contrast)
   ============================= */
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; font-weight: 900; letter-spacing: 0.3px; border-radius: 12px; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); text-align: center; }
.button-primary { background: var(--color-secondary); color: var(--color-white); box-shadow: var(--shadow-1); border: 2px solid var(--color-secondary); }
.button-primary:hover {color: white ;transform: translateY(-2px); box-shadow: var(--shadow-2); }
.button-secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.button-secondary:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); box-shadow: var(--shadow-1); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-inline { display: flex; align-items: center; gap: 12px; }

/* =============================
   Lists, Content blocks
   ============================= */
.content-wrapper > ul, .content-wrapper > ol { background: rgba(255, 255, 255, 0.137); padding: 16px; border-radius: var(--radius-s); box-shadow: var(--shadow-1); }
.content-wrapper > ul li + li, .content-wrapper > ol li + li { margin-top: 6px; }

/* =============================
   Services / Projects (cards)
   ============================= */
.services-grid, .project-list { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.services-grid article, .project-list article { flex: 1 1 260px; background: var(--color-white); padding: 20px; border-radius: var(--radius-m); box-shadow: var(--shadow-1); border: 2px solid #E8E8ED; transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid); }
.services-grid article:hover, .project-list article:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--color-primary); }
.services-grid article h3, .project-list article h3 { font-size: 22px; margin-bottom: 6px; }

/* =============================
   Testimonials (high readability)
   ============================= */
.testimonial-card { background: var(--color-white); color: var(--color-ink); border: 2px solid #E8E8ED; border-left: 8px solid var(--color-secondary); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }

/* =============================
   Footer
   ============================= */
footer { background: var(--color-white); border-top: 6px solid var(--color-primary); }
footer .content-wrapper { gap: 24px; padding: 30px 0; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 32px; width: auto; }
.footer-nav, .footer-legal, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h3, .footer-legal h3, .footer-contact h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--color-primary); margin-bottom: 4px; }
.footer-nav a, .footer-legal a { font-weight: 700; padding: 6px 0; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--color-secondary); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { background: var(--color-primary); color: var(--color-white); padding: 8px 12px; border-radius: 10px; font-weight: 800; transition: transform var(--transition-fast), background var(--transition-fast); }
.social-links a:hover { background: #1f2133; transform: translateY(-2px); }

/* =============================
   Forms & Misc (for potential inputs)
   ============================= */
input, select, textarea { width: 100%; padding: 12px 14px; border: 2px solid #DADCE3; border-radius: 10px; background: var(--color-white); font-size: 16px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
input:focus, select:focus, textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(43,45,66,0.12); outline: none; }
label { font-weight: 800; margin-bottom: 6px; display: inline-block; }

/* =============================
   Cookie Consent (Banner & Modal)
   ============================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-cookie); display: flex; flex-direction: column; gap: 14px; background: var(--color-primary); color: var(--color-white); padding: 16px 18px; box-shadow: 0 -10px 24px rgba(0,0,0,0.2); transform: translateY(100%); opacity: 0; transition: transform 320ms ease, opacity 320ms ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-text { font-size: 14px; opacity: 0.95; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 12px 16px; border-radius: 10px; font-weight: 900; letter-spacing: 0.3px; border: 2px solid transparent; }
.cookie-accept { background: var(--color-secondary); color: var(--color-white); }
.cookie-reject { background: var(--color-white); color: var(--color-primary); }
.cookie-settings { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.cookie-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }

.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; z-index: calc(var(--z-cookie) + 1); background: rgba(0,0,0,0.6); }
.cookie-modal.open { display: flex; }
.cookie-dialog { background: var(--color-white); color: var(--color-ink); width: 100%; max-width: 720px; border-radius: var(--radius-l); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-dialog h3 { font-size: 22px; }
.cookie-options { display: flex; flex-direction: column; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 2px solid #E8E8ED; border-radius: 12px; }
/* simple toggle style for settings */
.switch { position: relative; width: 54px; height: 30px; border-radius: 20px; background: #CBD0DC; transition: background var(--transition-fast); display: inline-flex; align-items: center; padding: 3px; }
.switch::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--color-white); transform: translateX(0); transition: transform var(--transition-fast), background var(--transition-fast); box-shadow: var(--shadow-1); }
.switch.on { background: var(--color-secondary); }
.switch.on::after { transform: translateX(24px); }
.cookie-dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =============================
   Accessibility helpers
   ============================= */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* =============================
   Responsive (Flex-only adjustments)
   ============================= */
@media (min-width: 576px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; align-items: center; }
  .hero .content-wrapper { padding: 64px 0; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  p { font-size: 18px; }
  .services-grid article, .project-list article { flex: 1 1 calc(50% - 20px); }
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .content-wrapper { gap: 24px; }
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  .services-grid article, .project-list article { flex: 1 1 calc(33.333% - 20px); }
  header .content-wrapper { padding: 16px 0; }
  .hero .content-wrapper { padding: 80px 0; }
}

/* =============================
   Page-specific minor tweaks
   ============================= */
.hero + section .content-wrapper { margin-top: 6px; }

/* Quote style inside testimonials */
.testimonial-card p:first-child { font-size: 18px; font-style: italic; }

/* Footer copyright row */
footer .container:last-of-type .content-wrapper { border-top: 1px solid #E8E8ED; padding-top: 16px; justify-content: center; align-items: center; }

/* =============================
   Decorative dividers & badges
   ============================= */
h2 { position: relative; padding-left: 14px; }
h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: var(--color-secondary); border-radius: 4px; }

/* =============================
   Additional flex utilities (no grid)
   ============================= */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* =============================
   Cards generic
   ============================= */
.card { background: var(--color-white); border-radius: var(--radius-m); box-shadow: var(--shadow-1); border: 2px solid #E8E8ED; padding: 20px; transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--color-primary); }

/* =============================
   Link states
   ============================= */
a:hover { color: var(--color-secondary); }

/* =============================
   Print basics
   ============================= */
@media print { 
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; }
  a { text-decoration: underline; color: #000; }
}
