/*
Theme Name: Roveista (Black & White)
Theme URI: http://example.com/roveista-bw
Author: Your Name
Author URI: http://example.com
Description: A black and white digital agency WordPress theme; text is white on a black/dark background.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roveista
*/

/*--------------------------------------------------
   Color Variables
--------------------------------------------------*/
:root {
  --primary: #FFFFFF;     /* Main text color */
  --accent:  #444444;      /* Accent (e.g., borders, hover state) */
  --secondary: #CCCCCC;    /* Secondary text color (if needed) */
  --tertiary: #888888;     /* Additional shade for details */
  --background: #000000;   /* Main background color */
}

/*--------------------------------------------------
   Global Resets & Base Styles
--------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--background);
  color: var(--primary);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/*--------------------------------------------------
   Header & Navigation
--------------------------------------------------*/
nav {
  background: var(--background);
  padding: 20px 40px;
  border-bottom: 2px solid var(--accent);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav .logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  color: var(--primary);
}

nav ul.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul.nav-menu li {
  margin-left: 25px;
}

nav ul.nav-menu li a {
  color: var(--primary);
  font-weight: 600;
  padding: 8px 12px;
}

.header-buttons .btn {
  background: var(--accent);
  color: var(--primary);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.header-buttons .btn:hover {
  background: var(--secondary);
}

#menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
}

/*--------------------------------------------------
   Hero Section
--------------------------------------------------*/
.hero {
  margin-top: 80px;
  height: 80vh;
  background: url('https://via.placeholder.com/1920x1080?text=Hero+Background') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary);
  padding: 20px;
}

.hero h1 {
  font-size: 3.5em;
  text-shadow: 2px 2px 8px var(--accent);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
}

/* Button */
.btn {
  background: var(--accent);
  color: var(--primary);
  padding: 15px 35px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--secondary);
}

/*--------------------------------------------------
   Our Services Section
--------------------------------------------------*/
.services {
  background: var(--background);
  padding: 80px 20px;
}

.services h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--background);
  border: 1px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card .service-content {
  padding: 20px;
  flex: 1;
}

.service-card .service-content h3 {
  margin-bottom: 15px;
  font-size: 1.6em;
  color: var(--primary);
}

.service-card .service-content ul {
  list-style: none;
}

.service-card .service-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 0.95em;
  color: var(--primary);
}

.service-card .service-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Service Card Image Wrapper */
.service-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 25%; /* Adjust this value to achieve your desired aspect ratio */
  overflow: hidden;
}

.service-image-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*--------------------------------------------------
   About Us Section
--------------------------------------------------*/
.about-us {
  background: #111111;  /* Darker shade for contrast */
  padding: 80px 20px;
  text-align: center;
  color: var(--primary);
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-us h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-us p {
  font-size: 1.1rem;
  margin-top: 20px;
  line-height: 1.8;
}

/*--------------------------------------------------
   Why Choose Us Section
--------------------------------------------------*/
.why-choose-us {
  background: var(--background);
  padding: 60px 20px;
  text-align: center;
  color: var(--primary);
}

.choose-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
}

.why-choose-us h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.choose-list {
  list-style: none;
  text-align: left;
  margin: 20px 0;
  padding: 0;
}

.choose-list li {
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--primary);
}

.choose-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

.choose-tagline {
  font-size: 1.2rem;
  margin-top: 20px;
  font-style: italic;
  color: var(--primary);
}

/*--------------------------------------------------
   Our Progress Section
--------------------------------------------------*/
.our-progress {
  background: #111111;
  padding: 80px 20px;
  text-align: center;
  color: var(--primary);
}

.our-progress h2 {
  color: var(--primary);
}

.progress-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.progress-card {
  background: var(--background);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.progress-card:hover {
  transform: translateY(-5px);
}

.progress-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
}

.progress-card p {
  font-size: 1rem;
  margin-top: 10px;
  color: var(--primary);
}

/*--------------------------------------------------
   Contact Section
--------------------------------------------------*/
.contact {
  background: var(--background);
  padding: 80px 20px;
  text-align: center;
  color: var(--primary);
}

.contact h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--primary);
}

.form-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1em;
}

/*--------------------------------------------------
   Footer
--------------------------------------------------*/
.site-footer {
  background: var(--background);
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  border-top: 2px solid var(--accent);
  color: var(--primary);
}

/* Footer Widget Area */
.footer-widgets {
  display: flex;
  justify-content: center;  /* Center the widgets horizontally */
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-widget {
  flex: 0 0 auto;
  margin: 0 10px;
}

/* Responsive: Four columns on screens larger than 768px; adjust as needed */
@media (min-width: 768px) {
  .footer-widget {
    width: 22%;
  }
}

/*--------------------------------------------------
   Fade-In Animation
--------------------------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------
   Mobile Optimization
--------------------------------------------------*/
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav ul.nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  nav ul.nav-menu li {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .header-buttons {
    margin-top: 10px;
  }
  
  .services-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.8em;
  }
}
/*--------------------------------------------------
  Service Detail Adjustments
--------------------------------------------------*/
.service-detail-container {
  display: flex;
  flex-direction: column;
  height: 100vh;        /* Total viewport height */
  margin-top: 80px;     /* Space for fixed header */
}

.image-section {
  flex: 0.7;              /* Adjust this ratio: e.g., change to 0.6 for 60% height */
  overflow: hidden;
  position: relative;
}

/* Control image fit, centering, and scaling */
.image-section img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);  /* Always center */
  /* To adjust cropping vs. fitting, tweak one of these: */
  object-fit: cover;    /* cover = fills container, may crop */
  /* object-fit: contain; */ /* contain = whole image visible, may letterbox */
  /* object-position: top center; */ /* reposition focus point */
  width: 100% !important;          /* ensures full‑width coverage */
  height: 100% !important;         /* ensures full‑height coverage */
}

/* Lower‑half text section—adjust only if needed */
.text-section {
  flex: 1;              /* Adjust to complement .image-section ratio */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: var(--background);
}


