/*
Theme Name: Bismont Corporate Theme
Theme URI: https://example.com/
Author: Bismont
Author URI: https://example.com/
Description: Corporate WordPress theme based on the original Astro Bismont site.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: bismont-theme
*/
:root {
  --primary: #083335;
  --primary-80: rgba(8, 51, 53, 0.8);
  --primary-60: rgba(8, 51, 53, 0.6);
  --primary-40: rgba(8, 51, 53, 0.4);
  --secondary: #7e4627;
  --secondary-80: rgba(126, 70, 39, 0.8);
  --secondary-60: rgba(126, 70, 39, 0.6);
  --secondary-40: rgba(126, 70, 39, 0.4);
  --neutral: #e8e6e6;
  --neutral-80: rgba(232, 230, 230, 0.8);
  --neutral-60: rgba(232, 230, 230, 0.6);
  --neutral-40: rgba(232, 230, 230, 0.4);
  --white: #ffffff;
  --text: #0d1f20;
  --shadow: 0 24px 60px rgba(8, 51, 53, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--neutral-40) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: block;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
}

h1,
h2,
h3 {
  font-family: "Open Sans", sans-serif;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

h1 {
  font-size: clamp(2.6rem, 3.4vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
  color: var(--primary-80);
}

.lead {
  font-size: 1.05rem;
  color: var(--primary-80);
  max-width: 560px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 120px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content .lead {
  max-width: 520px;
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.ghost {
  border-color: var(--primary-40);
  color: var(--primary);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.hero-panel {
  background: var(--primary);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 28px;
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  color: var(--white);
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.panel-block {
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  padding-left: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card,
.value-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-60);
  box-shadow: 0 16px 30px rgba(8, 51, 53, 0.05);
}

.info-card p,
.value-card p {
  margin: 0;
}

.enfoque-list {
  display: grid;
  gap: 16px;
}

.enfoque-item {
  background: var(--neutral-60);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  border-left: 4px solid var(--secondary);
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--primary-80);
}

.cta-section {
  padding: 90px 0;
  background: linear-gradient(120deg, var(--primary) 0%, #0f3d3f 100%);
  color: var(--white);
}

.cta-section h2,
.cta-section p,
.cta-section .eyebrow {
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.cta-actions {
  background: rgba(255, 255, 255, 0.08);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-actions .helper {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 12px;
}

.site-footer {
  padding: 40px 0 60px;
  background: var(--white);
  border-top: 1px solid var(--neutral-60);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--primary-80);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--secondary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-60);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 1rem;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  color: var(--primary);
}

.site-nav a.active {
  color: var(--secondary);
  position: relative;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

.btn.small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-60);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(8, 51, 53, 0.06);
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(8, 51, 53, 0.82);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--neutral-60);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-80);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--neutral-60);
  font-family: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.info-block {
  background: var(--neutral-60);
  padding: 24px;
  border-radius: var(--radius-sm);
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .cta-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-panel {
    order: -1;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 5vw;
    background: var(--white);
    border: 1px solid var(--neutral-60);
    border-radius: var(--radius-md);
    padding: 20px;
    display: none;
    flex-direction: column;
    width: min(320px, 90vw);
    box-shadow: var(--shadow);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: flex;
  }

  .nav-toggle:checked + .hamburger + .site-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 88px 0 72px;
  }
}

/* Gutenberg editor-only fixes for dynamic Bismont blocks */
.editor-styles-wrapper .wp-block[data-type^="bismont/"] .container {
  width: 100%;
  max-width: 1120px;
}

.editor-styles-wrapper .wp-block[data-type^="bismont/"] .hero-grid,
.editor-styles-wrapper .wp-block[data-type^="bismont/"] .grid-2,
.editor-styles-wrapper .wp-block[data-type^="bismont/"] .grid-3,
.editor-styles-wrapper .wp-block[data-type^="bismont/"] .product-grid,
.editor-styles-wrapper .wp-block[data-type^="bismont/"] .cta-grid,
.editor-styles-wrapper .wp-block[data-type^="bismont/"] .contact-grid {
  width: 100%;
}

.editor-styles-wrapper .wp-block[data-type^="bismont/"] .bismont-preview-wrap {
  overflow-x: auto;
}

