/* ==========================================================================
   dromtyrstox store - Design System (designer-premium, pt-PT)
   ========================================================================== */

:root {
  --bg-main: #FDFBF7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4EFE6;
  --bg-accent-soft: rgba(194, 122, 58, 0.08);
  
  --text-main: #1C1B19;
  --text-muted: #665F58;
  --text-light: #948C84;
  
  --accent: #C27A3A;
  --accent-hover: #A56226;
  --accent-dark: #6E3F14;
  
  --border-light: #E9E3D8;
  --border-medium: #D1C8BC;
  
  --font-serif: "Playfair Display", "Didot", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --shadow-sm: 0 2px 6px rgba(28, 27, 25, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 27, 25, 0.06);
  --shadow-lg: 0 16px 40px rgba(28, 27, 25, 0.09);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition: all 0.22s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--text-main);
  color: #FFFFFF;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 15px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-narrow {
  max-width: 840px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
}

p {
  margin-bottom: 1.15rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-logo:hover {
  text-decoration: none;
}
.brand-icon {
  color: var(--accent);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}
.site-nav a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}
.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.toggle-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none !important;
}
.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
}
.btn-outline {
  background-color: transparent;
  border-color: var(--border-medium);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--text-main);
  background-color: var(--bg-subtle);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* Badges */
.badge-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: var(--bg-accent-soft);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 3rem;
}
.hero-metrics {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.metric-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-illustration {
  width: 100%;
  height: auto;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}

/* Standard Sections */
.section {
  padding: 90px 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.card-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.card-price {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Workflow Section */
.section-workflow {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--bg-surface);
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.step-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.step-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] .faq-question::after {
  content: "–";
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* CTA Banner */
.section-cta-banner {
  padding: 40px 0 90px;
}
.cta-box {
  background: #1C1B19;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-box h2 {
  color: #FFFFFF;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.cta-box p {
  color: #BCB4AB;
  max-width: 600px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.cta-box .btn-outline {
  border-color: #4A4641;
  color: #FFFFFF;
}
.cta-box .btn-outline:hover {
  background: #332F2A;
  border-color: #69625A;
}

/* Page Headers (Inner Pages) */
.page-header {
  padding: 70px 0 50px;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}
.page-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.page-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 760px;
}

/* Content Columns (About Page) */
.content-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
.column-main h2 {
  font-size: 1.7rem;
  margin: 2rem 0 1rem;
}
.column-main h2:first-of-type {
  margin-top: 0;
}
.styled-list {
  margin: 1.5rem 0 2rem 1.5rem;
}
.styled-list li {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.sidebar-details {
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.sidebar-details p {
  margin-bottom: 0.8rem;
}

/* Catalog Grid (Services Page) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.product-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.product-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.product-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}
.product-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  flex-grow: 1;
}
.product-features {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
  margin-bottom: 1.6rem;
}
.product-features li {
  margin-bottom: 0.5rem;
  padding-left: 16px;
  position: relative;
}
.product-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Contact Page Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-details h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.contact-entry {
  margin-bottom: 1.6rem;
}
.entry-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.entry-val {
  font-size: 1.1rem;
}
.note-box {
  background: var(--bg-accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 2rem;
}
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.form-instructions {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.clean-form .form-group {
  margin-bottom: 1.3rem;
}
.clean-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(194, 122, 58, 0.15);
}
.form-security-note {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
}

/* Legal Pages */
.legal-body {
  max-width: 820px;
}
.legal-body h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem;
}
.legal-body h2:first-of-type {
  margin-top: 0;
}
.legal-body ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}
.legal-body li {
  margin-bottom: 0.5rem;
}
.legal-body code {
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-dark);
}

/* Footer */
.site-footer {
  background: #141312;
  color: #B2AAA0;
  padding: 70px 0 30px;
  margin-top: auto;
  border-top: 1px solid #2B2825;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.footer-addr, .footer-contact {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.footer-addr strong, .footer-contact strong {
  color: #FFFFFF;
}
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #B2AAA0;
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-legal-note {
  font-size: 0.8rem;
  color: #7D766E;
  margin-top: 1rem;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #262421;
  text-align: center;
  font-size: 0.85rem;
  color: #7D766E;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1C1B19;
  color: #E6E1D9;
  padding: 18px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  z-index: 99999;
  border-top: 1px solid #332F2A;
  display: none;
}
.cookie-banner.is-active {
  display: block;
}
.cookie-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.9rem;
}
.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions .btn-outline {
  border-color: #554F47;
  color: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 0;
    margin-bottom: 20px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .content-columns, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav .nav-list {
    flex-direction: column;
    gap: 18px;
  }
  .nav-toggle {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

@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;
  }
}